C # wrap text inside a list

I want to display a list of words in a list by concatenating them. Below is an example of what I want to do. I was able to add words to a semicolon list and on one line. Could you please help me to wrap this text.

For comma separation, I used ListBox.Items.Add (string.Join (",", myList));

Expected output- enter image description here

Below is my conclusion enter image description here

+3


source to share


1 answer


I don't think its possible to print text strings for a ListBox with a standard one . Try using instead multiple

ListBox

TextBox

Multiline = true



  this.textBox1.Text = string.Join(",", UniqueWord(myList));

      

+2


source







All Articles