| Author: Pavani 29 Nov 2008 | Member Level: Gold | Rating:  Points: 5 |
Hi
f2.listBox2.Items.Add(str); As far as I know, though you are taking \n in the string variable str, still you are adding it to the list box as a single item. So, I think, it will not display the items as list. Instead try using "AddRange".
And as everyone knows, "\n" is for new line and "\r" is for carriage return, means it moves the cursor to the first character position of the new line.
Hope this is helpful for you...
|
| Author: bob 01 Dec 2008 | Member Level: Gold | Rating:  Points: 3 |
ArrayList values = new ArrayList();
values.Add ("IN"); values.Add ("KS"); values.Add ("MD"); values.Add ("MI"); values.Add ("OR"); values.Add ("TN");
ListBox1.DataSource = values; ListBox1.DataBind();
|