Click here to Skip to main content
15,890,557 members
Home / Discussions / C#
   

C#

 
GeneralChanging the scroll bar color Pin
LannieK28-Dec-04 5:34
LannieK28-Dec-04 5:34 
GeneralLicensing, Encryption and .NET Reflector Pin
PaleyX28-Dec-04 3:58
PaleyX28-Dec-04 3:58 
GeneralRe: Licensing, Encryption and .NET Reflector Pin
Javier Lozano28-Dec-04 6:21
Javier Lozano28-Dec-04 6:21 
GeneralRe: Licensing, Encryption and .NET Reflector Pin
Skynyrd28-Dec-04 8:43
Skynyrd28-Dec-04 8:43 
GeneralA loop in write statement Pin
Anonymous28-Dec-04 3:43
Anonymous28-Dec-04 3:43 
GeneralRe: A loop in write statement Pin
Identity Undisclosed28-Dec-04 7:46
Identity Undisclosed28-Dec-04 7:46 
GeneralRe: A loop in write statement Pin
Anonymous28-Dec-04 11:34
Anonymous28-Dec-04 11:34 
GeneralRe: A loop in write statement Pin
Bill Dean29-Dec-04 16:55
Bill Dean29-Dec-04 16:55 
Can't you just nest another loop? Like:
int cols=3; //for example;
int testCount=PARAMS.length;

for (int rowIndex=0;rowIndex < Math.Ceiling (Convert.ToDouble (testCount) / Convert.ToDouble (cols));rowIndex++)
{
	for (int colIndex=0;colIndex < cols;colIndex++)
        {
		if (rowIndex * cols +colIndex < testCount)
		{
			writer1.Write(PARAMS[rowIndex * cols +colIndex].ToString () + " ");
 		}
	}
        writer1.WriteLine();
}


That should write it one row at a time:
0 1 2
3 4 5
6 etc.

Hope this helps
Bill
GeneralRe: A loop in write statement Pin
jablo30-Dec-04 8:48
jablo30-Dec-04 8:48 
GeneralRe: A loop in write statement Pin
Bill Dean30-Dec-04 9:11
Bill Dean30-Dec-04 9:11 
GeneralTerminating ThreadPool Paths Pin
Tristan Rhodes28-Dec-04 2:09
Tristan Rhodes28-Dec-04 2:09 
GeneralRe: Terminating ThreadPool Paths Pin
Guinness4Strength28-Dec-04 8:52
Guinness4Strength28-Dec-04 8:52 
GeneralRe: Terminating ThreadPool Paths Pin
Tristan Rhodes28-Dec-04 13:35
Tristan Rhodes28-Dec-04 13:35 
GeneralDoes anybody have the C# Sorted ListView by Carlos H. Perez Pin
dfsgdsfgdfg28-Dec-04 1:51
dfsgdsfgdfg28-Dec-04 1:51 
GeneralDoes anybody have the C# Sorted ListView by Carlos H. Perez Pin
dfsgdsfgdfg28-Dec-04 1:50
dfsgdsfgdfg28-Dec-04 1:50 
Generalpassing values to a dataset Pin
dhol28-Dec-04 1:01
dhol28-Dec-04 1:01 
GeneralCreating a DataGrid where one record is painted on multiple raows Pin
A.Mohsen28-Dec-04 0:35
A.Mohsen28-Dec-04 0:35 
Generalget key Pin
ABBASI_RA27-Dec-04 21:47
ABBASI_RA27-Dec-04 21:47 
GeneralRe: get key Pin
Stefan Troschuetz28-Dec-04 5:58
Stefan Troschuetz28-Dec-04 5:58 
GeneralRe: get key Pin
Guinness4Strength28-Dec-04 8:12
Guinness4Strength28-Dec-04 8:12 
GeneralCJK problem in the PDF format Pin
DTaV27-Dec-04 21:35
DTaV27-Dec-04 21:35 
General---Delegates Serialization &amp; Remoting-- Pin
Identity Undisclosed27-Dec-04 21:07
Identity Undisclosed27-Dec-04 21:07 
GeneralRe: ---Delegates Serialization &amp; Remoting-- Pin
leppie27-Dec-04 21:53
leppie27-Dec-04 21:53 
GeneralThe &quot;ESC&quot; character Pin
Hercules0127-Dec-04 19:25
Hercules0127-Dec-04 19:25 
GeneralRe: The &quot;ESC&quot; character Pin
Heath Stewart27-Dec-04 19:46
protectorHeath Stewart27-Dec-04 19:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.