473,732 Members | 2,175 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 55653
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
11456
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
2678
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
2338
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
23202
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
4159
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
2501
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
7106
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
3668
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
4212
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
8944
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
8773
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
9445
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...
1
9234
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6733
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
6030
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
4805
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3259
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
3
2177
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.