It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

new line in one label

Moderator: dafunkymunky

new line in one label

Postby Lazy2naughty on Fri Sep 07, 2007 6:47 am

example senario:
username:
password:

but you use only one label instead of 2 label for that output...
tenxs
Lazy2naughty
 
Posts: 4
Joined: Fri Sep 07, 2007 6:11 am

Postby doktrindark on Tue Oct 23, 2007 6:20 am

If you what you want is to display a label for example 'Label1' in a form with two lines, consider this:

Place a label in your form. Let's say the name of the label is 'Label1'.

Resize the label's area of output (the dashed rectangle) so it can hold two lines of caption or text.

Go to the form code.

In the Form_Load enter this:

Label1.Caption = "Line 1" & chr(13) & "Line 2"

That's it.

- "Line 1" and "Line 2" is the texts/captions you want to show
- & is use to join two strings/texts which the other string is in a variable
or special character
- chr(13) is a new line feed. It's like you enter an ENTER key

Well, that's all I understand about your problem. Hope it will help.
doktrindark
 
Posts: 7
Joined: Wed Oct 10, 2007 1:20 pm
Location: Philippines


Who is online

Users browsing this forum: No registered users and 2 guests