开发者

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";
    }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜