string FstArray = splite[0]; string SndArray = splite[1]; textBox2.Text = FstArray;
textBox2.Text = String.Join(System.Environment.NewLine, splite)
textBox2.Text = FstArray + Environment.NewLine + SndArray + Environment.NewLine + ... ;
System.Text.StringBuilder
System.Environment.NewLine
void PopulateTextBox(string[] source, TextBox destination) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); int count = 0; foreach(string line in source) { sb.Append(line); if (count < source.Length - 1) sb.Append(System.Environment.NewLine); ++count; } destination.Text = sb.ToString(); }
textBox2.Text = FstArray + Environment.NewLine + FstArray;
string str = "Hello, Hi, Hoo"; string[] strar = str.Split(','); foreach(string ss in strar) { TextBox1.Text = TextBox1.Text+ss + Environment.NewLine; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)