foreach ( String str in TextBox1.Text.Split('\n') ) ListBox1.Items.Add(str);
private void TextBoxToListBox(TextBox textBox, ListBox listBox) { listBox.BeginUpdate(); foreach ( string str in textBox.Lines ) { listBox.Items.Add(str); } listBox.EndUpdate(); }
listBox.Items.AddRange(textBox.Lines);
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question