470,626 Members | 2,139 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,626 developers. It's quick & easy.

Which controls can wrap line

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?
Sep 3 '06 #1
4 1479
ad,

Why not just use a textbox?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"ad" <fl****@wfes.tcc.edu.twwrote in message
news:ON**************@TK2MSFTNGP04.phx.gbl...
>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?

Sep 3 '06 #2
ad
But I have multi lines to add.
How can I do?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com撰寫於郵件新聞:uP* *************@TK2MSFTNGP04.phx.gbl...
ad,

Why not just use a textbox?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"ad" <fl****@wfes.tcc.edu.twwrote in message
news:ON**************@TK2MSFTNGP04.phx.gbl...
>>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?


Sep 4 '06 #3

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;

Sep 4 '06 #4
Ad,
But I have multi lines to add.
How can I do?
Set the property for that.

http://windowssdk.msdn.microsoft.com...multiline.aspx

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

I hope this helps,

Cor

"ad" <fl****@wfes.tcc.edu.twschreef in bericht
news:eL**************@TK2MSFTNGP04.phx.gbl...
But I have multi lines to add.
How can I do?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com>
撰寫於郵件新聞:uP**************@TK2MSFTNGP04.phx.g bl...
>ad,

Why not just use a textbox?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"ad" <fl****@wfes.tcc.edu.twwrote in message
news:ON**************@TK2MSFTNGP04.phx.gbl...
>>>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?



Sep 4 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Fluffy Convict | last post: by
8 posts views Thread by name | last post: by
3 posts views Thread by keith | last post: by
reply views Thread by Zi | last post: by
1 post views Thread by Nathan Sokalski | last post: by
8 posts views Thread by Mark D. Smith | last post: by
reply views Thread by =?Utf-8?B?Y2hpdHRvcmlhbg==?= | last post: by
1 post views Thread by CFFAN | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.