Hey, i trying to list out all the items after i split it in text box. But, the output always list items in wrong way. Can someone help me?
For example:
the output i want to print in the textbox is like this
1
2
3
4
5
but it always give me like this
1 2 3 4 5
The properties for that text box i set true for Multi line.
Here is my coding
SplitItems = (str).Split(new string[] { " ", "\n", "\r", "\t" }, StringSplitOptions.RemoveEmptyEntries);
foreach (string listOut in SplitItems)
{
ListSplitItems += "\n" + listOut;
}
textBox7.Text = ListSplitItems;
why still cannot print out vertically in text box..?
Someone can help me..?