-
Im trying to figure out if there is a way to force text onto the 2nd line of a label or not.
example:
on the first line of a label it says something like "First name: blah blah" but there are two names being displayed... Instead of the second name being displayed right after the first one, is there a way to force it to the 2nd line without using spaces?
Sorry for the stupid questions, I just started learning vb.
Thanks in advance!
Vpr
-
Code:
Label1.Caption = "Name1" & vbCrLf & "Name2"
-
use a vbLf or Chr$(10) where you want the line break to be.... and make use WordWrap and AutoSize are true.
-
either use & VBCRLF & or & VBNEWLINE & hust before where you want the next line to start !;)
-
thanks...
Thanks, I knew there must have been a command to do that, just didn't know what it was..
*bows deep*
Vpr