Which controls can wrap line

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I am using VS2005 to develp Win form program.
I add lines to a ListBox.
But when the line width larger than the width of the ListBox, the ListBox
can't wrap the word.

What conrols is suittable for me to add lines and can wrap words?
 
But I have multi lines to add.
How can I do?


Nicholas Paldino said:
ad,

Why not just use a textbox?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

ad said:
I am using VS2005 to develp Win form program.
I add lines to a ListBox.
But when the line width larger than the width of the ListBox, the ListBox
can't wrap the word.

What conrols is suittable for me to add lines and can wrap words?
 
myTextbox.Text += "This is line 1" + Environment.NewLine;
myTextbox.Text += "This is line 2" + Environment.NewLine;
myTextbox.Text += "This is line 3" + Environment.NewLine;
myTextbox.Text += "This is line 4" + Environment.NewLine;
myTextbox.Text += "This is line 5" + Environment.NewLine;
 
Ad,
But I have multi lines to add.
How can I do?

Set the property for that.

http://windowssdk.msdn.microsoft.com/en-us/library/system.windows.forms.textbox.multiline.aspx

If fact it makes the behaviour of your textbox more extended than only
showing lines.

I hope this helps,

Cor

ad said:
But I have multi lines to add.
How can I do?


Nicholas Paldino said:
ad,

Why not just use a textbox?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

ad said:
I am using VS2005 to develp Win form program.
I add lines to a ListBox.
But when the line width larger than the width of the ListBox, the
ListBox can't wrap the word.

What conrols is suittable for me to add lines and can wrap words?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top