By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,694 Members | 1,882 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,694 IT Pros & Developers. It's quick & easy.

How to break line in Label control

P: n/a
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
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
> 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??


and this is simple example (i would like to break line in Text property of
label control):

Label1.Text = "Line1<BR>Line2";

It doesn't works... any ideas?

Jack
Nov 18 '05 #2

P: n/a
> > 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??

Try changing the labels width to see if it will wrap text for you. If that
doesn't work, use two different label controls.or another type of control
that does wrap or process line breaks.

It seems to me you want something that was never meant to be. Like I once
tried for about an hour to include carriage returns in the text part of an
XML element... The name element does make sense.
Nov 18 '05 #3

P: n/a
Jacek Stepniewski wrote:
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??

and this is simple example (i would like to break line in Text property of
label control):

Label1.Text = "Line1<BR>Line2";

It doesn't works... any ideas?

Jack


It works just fine for me - could you post a very small complete example
that reproduces your problem.

--
mikeb

Nov 18 '05 #4

P: n/a
Jacek Stepniewski wrote:
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??

and this is simple example (i would like to break line in Text property of
label control):

Label1.Text = "Line1<BR>Line2";

It doesn't works... any ideas?

Jack


It works just fine for me - could you post a very small complete example
that reproduces your problem.

--
mikeb

Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.