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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On a label... How do I continue on the next line?

Status
Not open for further replies.

Tonyn2002

Technical User
Dec 19, 2001
11
US
Such as in HTML, I would use the <BR> to go to the next line down

Example a label at the top (lblTitle)

ACME, INC.
Gas Mileage Testing Program

Now what would I use after &quot;ACME, INC.&quot; to go to the next line. Is there a character to go to the next line, such as &quot;&&quot; (without the quotes) makes the letter active by pressing ALT+the letter...
 
Hmmm...I know you can do it from code by using

label1.caption = &quot;ACME, INC.&quot; & vbcrlf & &quot;Gas Mileage Testing Program&quot;

I don't know how to do it in the designer.

Don't know if this does you any good.
 
Label1.Caption = &quot;ACME, INC.&quot; & vbCrLf & &quot;Gas Mileage Testing Program&quot;

The &quot;vbCrLf&quot; represents a carriage control and line feed.

Hope this helps!
 
Is it even possible in the design mode to do the same thing?

And thanks for the help, that at least works... Just don't understand why I would have to do it in the code and can't just add something in the designer mode.

Thanks again,
Tony
 
The simplest way is to insert a dummy space in between words, so that the word exactly fits in the width provided.
This can be tried in the designer itself

Secondly there is a property of WORDWRAP for the labels.
Check it out.

Manoj Kalekar
manoj_kalekar@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top