473,486 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how do i insert a line break in a label

in my code i am storing the contents into a label
// code is as follows
lblSecurity.Text = lblSecurity.Text & vbCrLf & _
"Task Description"
this is not working though.
please advise

May 5 '06 #1
2 1571
Standard question #1:
What do you mean by "not working"?

Standard question #2:
What error message do you get?

pavan wrote:
in my code i am storing the contents into a label
// code is as follows
lblSecurity.Text = lblSecurity.Text & vbCrLf & _
"Task Description"
this is not working though.
please advise

May 5 '06 #2
Try HtmlEncoding the output so it shows up with a <BR> (or just use <BR>
directly)

Cheers,

Greg
"pavan" <pa*********@gmail.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
in my code i am storing the contents into a label
// code is as follows
lblSecurity.Text = lblSecurity.Text & vbCrLf & _
"Task Description"
this is not working though.
please advise

May 5 '06 #3

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

Similar topics

9
1833
by: Bennie | last post by:
Hi all, I have a little problem. def tekst_in(self, tag): tekst_tag={'p': '\t\t<p>\n\n\t\t</p>\n', 'br': '<br />'} print tekst_tag works fine in my class But...
2
609
by: Jacek Stepniewski | last post by:
Hi, I would like to use <BR> in label control to break the line, but the control converts "<" and ">" to entity. How can i break the line?? Jack
0
1755
by: compuglobalhypermeganetz0r | last post by:
I am having trouble getting an adapter to update my access database, it gives the error Syntax error in INSERT INTO statement. for Line 98: Adapter.Update(WineDS, "tblWines") Below is my...
1
2661
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...
1
1658
by: tshad | last post by:
I can't seem to get insert into a DataGrid to work. I am using an example from the net and made changes to work on my computer. The grid comes up fine. The edit boxes in the footer are there. ...
2
10095
by: Mardy | last post by:
Hello In my asp.net application, I'm trying to write a multi-line message to a label server control after a db insert. I'd like to force a line break at a particular point but I can't seem to...
2
2384
by: Polyhedron_12 | last post by:
I am having problems calling functions in general in VB. I keep getting alot of errors. Can anybody help me out with this? I put the error message on the same line that it says it is at. I believe...
2
2472
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. ...
8
5015
by: Red | last post by:
If auto-format is turned off in VS2008, there is apparently no way to indent a line. Under Tools->Options->Text Editor->C#->Formatting, there are three checkboxes. Unchecking those seems to cause...
0
6964
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...
0
7123
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,...
1
6842
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...
0
7319
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...
0
5430
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4864
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...
0
3069
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...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.