开发者

How to be able to write to a textbox side-by-side names of the items which are find inside Listbox in C#?

开发者 https://www.devze.com 2023-04-03 19:33 出处:网络
How to be able to write to a textbox side-by-side names of the items which a开发者_运维技巧re 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

精彩评论

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

关注公众号