How to be able to write to a textbox side-by-side names of the items which are find inside Listbox in C#?
How to be able to write to a textbox side-by-side names of the items which a开发者_运维技巧re find inside Listbox in C#?
Regards,
Something like this:
foreach (string s in Listbox.SelectedItems)
{
TextBox.Text += s + ", ";
}
if i under stand correctly use:
foreach (string s in listBox1.Items)
{
textbox1.text = textbox1.text + s;
textbox1.text = textbox1.text + "\r\n";
}
精彩评论