Hi everyone ... im just wondering if i can output a string into a textbox with a specified format.
I have an array thats 3200 chars that i want to output to a text box, however i want to output
this array in a row/column oriented fashion that is 80 columns by 40 rows. But when i add the
next lines into the array after 80 chars then output it to a text box, it will only output the
first line into the textbox.
Code:const int NUMOFROWS = 40; const int NUMOFCOLS = 80; private char[] TempHeader = new char[3200]; private char[] ASCIIHeader = new char[3200]; private void DisplayASCII(char[] ASCIIHeader) { for (int row = 0; row < NUMOFROWS; row++) { for (int col = 0; col < NUMOFCOLS; col++) { TempHeader[col] = ASCIIHeader[col]; } TempHeader[col] = '\n'; } outputFileTextBox.Text = new string(TempHeader); }
Thanks for any help