473,657 Members | 2,993 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1594
ad,

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

"ad" <fl****@wfes.tc c.edu.twwrote in message
news:ON******** ******@TK2MSFTN GP04.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.c om¼¶¼g©ó¶l¥ó·s» D:uP*********** ***@TK2MSFTNGP0 4.phx.gbl...
ad,

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

"ad" <fl****@wfes.tc c.edu.twwrote in message
news:ON******** ******@TK2MSFTN GP04.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.New Line;
myTextbox.Text += "This is line 2" + Environment.New Line;
myTextbox.Text += "This is line 3" + Environment.New Line;
myTextbox.Text += "This is line 4" + Environment.New Line;
myTextbox.Text += "This is line 5" + Environment.New Line;

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.tc c.edu.twschreef in bericht
news:eL******** ******@TK2MSFTN GP04.phx.gbl...
But I have multi lines to add.
How can I do?
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om>
¼¶¼g©ó¶l¥ó·s»D: uP************* *@TK2MSFTNGP04. phx.gbl...
>ad,

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

"ad" <fl****@wfes.tc c.edu.twwrote in message
news:ON******* *******@TK2MSFT NGP04.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
6755
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 (https://bugzilla.mozilla.org/show_bug.cgi?id=302710), FireFox does not listen to the textarea.wrap = 'soft' command. Because I want the script to be cross-browser compatible, someone suggested to remove and immediately add a node to the DOM, so I now have: ...
8
2167
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
1611
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 controls outside panel, it will be displayed to next line. Is there any property I can set in the panel to do it?
5
524
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
1925
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 page to the second page of the datagrid, the user contorl stops working correctly (displaying the correct data). I have attached the code that is envolved. Thanks a lot
1
1295
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 certain parts differently? For example, I might have a set of instructions that I want keywords displayed in a different color, or there might be a certain word that I want to display as a link. When the text is all on the same line, I can simply place...
8
52998
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 Mark
0
1638
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; WrapPanel parentPanel = VisualTreeHelper.GetParent(btn) as WrapPanel; Point position = Mouse.GetPosition(parentPanel); Point startPosition = new Point(); Point endPosition = btn.PointToScreen(position); startPosition.X = endPosition.X -...
1
4123
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 no whitespace characters before the limit, inserts a line break at the limit. Uses the operating-system specific line break: newline for UNIX, carriage return and newline on Windows.If you specify the strip parameter, all existing line breaks are...
0
8384
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8302
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8820
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8718
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5630
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.