|
-
Feb 7th, 2001, 11:30 AM
#1
Thread Starter
New Member
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
-
Feb 7th, 2001, 11:33 AM
#2
Fanatic Member
Code:
Label1.Caption = "Name1" & vbCrLf & "Name2"
-
Feb 7th, 2001, 11:35 AM
#3
Hyperactive Member
use a vbLf or Chr$(10) where you want the line break to be.... and make use WordWrap and AutoSize are true.
-
Feb 7th, 2001, 11:36 AM
#4
either use & VBCRLF & or & VBNEWLINE & hust before where you want the next line to start !
-
Feb 7th, 2001, 11:37 AM
#5
Thread Starter
New Member
thanks...
Thanks, I knew there must have been a command to do that, just didn't know what it was..
*bows deep*
Vpr
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|