473,698 Members | 2,243 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

New line in label

I want to start a new line in label, how do i do it. currently my code is:
lable.text = "this is a test" + "123"
and it displays like this. 'this is a tes 123'

and I want it to display as:
'this is a test'
'123'
Jan 6 '06 #1
4 55599
put able.text = "this is a test" & vbnewline & "123"
--
-iwdu15
Jan 6 '06 #2

Cheers

"iwdu15" wrote:
put able.text = "this is a test" & vbnewline & "123"
--
-iwdu15

Jan 6 '06 #3
"Ithaqua" <It*****@discus sions.microsoft .com> schrieb:
I want to start a new line in label, how do i do it. currently my code is:
lable.text = "this is a test" + "123"
and it displays like this. 'this is a tes 123'

and I want it to display as:
'this is a test'
'123'


\\\
Me.Label1.Text = "Hello" & Environment.New Line & "World"
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 6 '06 #4
Thank you

"Herfried K. Wagner [MVP]" wrote:
"Ithaqua" <It*****@discus sions.microsoft .com> schrieb:
I want to start a new line in label, how do i do it. currently my code is:
lable.text = "this is a test" + "123"
and it displays like this. 'this is a tes 123'

and I want it to display as:
'this is a test'
'123'


\\\
Me.Label1.Text = "Hello" & Environment.New Line & "World"
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 6 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
6012
by: Phil Powell | last post by:
The following code: $kounter = 0; $fsArray = array('farge', 'storrelse'); for ($i = 0; $i < sizeof($fsArray); $i++) { // POPULATE CONTENT FOR BOTH FARGE AND STØRRELSE DROPDOWNS NOW ASSOCIATED ACCORDING TO PRODUKT ID $label = $fsArray; ${$label}Array = array(); $sql = 'SELECT s.nnet_produkt_' . $label . '_navn ' . 'FROM nnet_produkt p, nnet_produkt_' . $label . '_assoc q, ' .
10
11454
by: Steve | last post by:
I'm not sure if I should be using tables here to structure the layout or if CSS is okay. I have a data entry form in which I have floated the labels to one side, and given them a specific width. With regular input such as textboxes, everything lines up fine. The problem I'm having is that I have an unordered list of checkboxes, and only the first item will line up with the label. The additional checkboxes and their labels end up being...
1
2672
by: buran | last post by:
Dear ASP.NET Programmers, I am carrying the input of a textbox via querystring. When I put the value of querstring in a label control, the line breaks are removed. The whole text is displayed as a single line. How can I carry the text as it is entered? Thanks in advance, Burak
2
2335
by: Nathan Sokalski | last post by:
I have a form that is laid out like the following: ------------ | | LABEL CONTROL | IMAGE | | | _________ I want the Label control to be on multiple lines (I know exactly how many and where the breaks will be) but stay contained in a rectangle. If I put BR
2
23151
by: nigel | last post by:
Hello i have been working on an interactive programme,i wish to use a small amount of Tk.Which i have taken from a tutorial. from Tkinter import * root = Tk() w =Label(root, text="Congratulations you have made it this far,just a few more questions then i will be asking you some") w.pack() root.mainloop() The problem i have is where i have started to write some text"Congratulations
16
4156
by: cj | last post by:
Back in VB4 there was a line tool in my toolbox that allowed me to put a decorative line on the form somewhere. Does VB.net 2003 offer this? It's not in the toolbox and I can't find it in the list to add to the toolbox.
2
2494
by: MDB | last post by:
Hello All, I have a label in a form view that I need to have display the line breaks. Is there an easy way to do this? For some reason, I havn't been able to find a straigh answer on this. Here is what I have: <asp:FormView ID="FormView1" runat="server" DataKeyNames="ID" DataSourceID="SqlDataSource2" Width="565px"> <itemtemplate> <table width="565" style="table-layout: fixed;word-break:break-all" >
9
7104
by: Haines Brown | last post by:
I would like to have a label followed by a line to the right margin, such as this: Label: _____________________________________________________________ There are ways to define lines having specific length, but I wanted one that would have variable length, surviving a change in display window size or font. I came up with the ugly markup below. It looks OK in a browser, but for some reason the line disappears when I print it.
2
3659
by: BillE | last post by:
I need to create a multi-line label dynamically. Since labels aren't multi-line, I'm creating a textbox and making it look like a label with the multiline property set to true. I want to increase the height of the textbox only if there are multiple lines, and leave it at the default height if the text does not wrap after setting the Text property. I thought I could use the Lines property after setting the Text property,
11
4208
by: JWest46088 | last post by:
I'm having difficulty trying to figure out how to print a text file from a hash table one line at a time. I have the text file read into the hash table and can print the text file all at once, but I can't seem to figure out how to do it one line at a time. Here is what I'm trying to do: I want the user to be able to print the text file one line at a time by clicking a button to see the next line. Example: If text_file1 first line is...
0
8676
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
8608
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
9161
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
8867
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6522
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
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3050
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
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.