0
How do I load a List<string> into a richTextBox and have each element on each line?
Loading Generic List into richTextBox
3 odpowiedzi
+ 2
Use the string builder.
StringBuilder b =new StringBuilder();
foreach(var item as list)
{b.Append(item);
b.AppendLine();
}
string output =b.ToString();
0
Iterate the list (forEach) and add each item into the textbox with appended "\n" to end.