473,382 Members | 1,424 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 1587
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¼¶¼g©ó¶l¥ó·s»D: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>
¼¶¼g©ó¶l¥ó·s»D: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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Fluffy Convict | last post by:
I am trying to write a script that changes a textarea wrap realtime, basically like you can switch to and from "wordwrap" in Microsofts Notepad. Because of a bug...
8
by: name | last post by:
Back again for more critique... <grin> ------------------------------------------------ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #define MAX 10000
3
by: keith | last post by:
I have a panel on my form and add controls (e.g. TextBox) into it at runtime. What I want is the controls will display on same line if they are visiable in the panel horizontally. If any of the...
5
by: john | last post by:
I searched http://www.sellsbrothers.com. and could not find anything about this subject. How do I make C# User Controls Visible to Visual Basic 6.0 Applications? Thanks, John
0
by: Zi | last post by:
I have a user control within a data grid. I am binding the user control to one of the values from the data grid. The data grid implements paging. It is all working ok for the first page but once i...
1
by: Nathan Sokalski | last post by:
I have had a question that I have been avoiding or using workarounds for for a while. When using text-based controls (Labels, HyperLinks displayed as text, LinkButtons, etc.), how do I format...
8
by: Mark D. Smith | last post by:
Hi I have googled but not found a solution to wordwrap in a textarea using firefox/netscape. is there a style sheet solution or am i stuck with not being able to force wrapping in a textarea...
0
by: =?Utf-8?B?Y2hpdHRvcmlhbg==?= | last post by:
I am trying to draw lines between buttons inside two different wrap panel ..This has to happen on click of button .The partial code goes below. UserControlButton btn = (UserControlButton)sender;...
1
by: CFFAN | last post by:
<h3>Wrap Example</h3> <cfset inputText1="Inserts line break at the location of the first white space character (such as a space, tab, or new line) before the specified limit on a line. If a line has...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.