Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multi line label

Status
Not open for further replies.

erics55

Programmer
Nov 20, 2006
30
0
0
SE
Hi
I have a label and I want to assign text to it and have returns in there so something like -

"
This Label has returns

This label has returns
"

--when I trie the label always reads

"
This label has returns This label has returns
"

If I try a text box it doesnt atomatically size it so i end up with scrol bars if the text is too long and a lot of waisted space if it is too short.

anyone have any ideas

thanks in advance
 
You could give the text the correct markup (i.e. each in it's own paragraph).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
How about
label1.text = "Your Text" + "<br />" + "More of your text"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top