Computing.Net > Forums > Programming > Vb an easy one? I think!!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Vb an easy one? I think!!

Reply to Message Icon

Name: buzz
Date: November 10, 2002 at 03:12:50 Pacific
OS: Xp
CPU/Ram: 1.1 gig 256DDR
Comment:

Hi,
Im new to Vb and just need a little help.
Is there anyway to have multiply lines of text on to 'Label'?
I have put multiple lines on a 'Label' by using 'Caption' in the 'Labels' properties but I have to put loads of spaces between the words to make it fit correctly.
Is there a way that I can put multiple lines on a 'Label' by using the code window.

eg: lbl1.caption = "Hello"
>>>

Thanks in advance

Buzzzzzzzzzz



Sponsored Link
Ads by Google

Response Number 1
Name: Buzzzzzzzz
Date: November 10, 2002 at 03:21:20 Pacific
Reply:

What I mean to say above was.....

eg lbl1.caption = "Hello"
~~~~Can I put another line of text here?~~~~

Is there a command that will break the lines of text?

Thanks

Buzzzzzzzzzzzzzzzz


0

Response Number 2
Name: Jason
Date: November 10, 2002 at 05:30:40 Pacific
Reply:

Label1.Caption = "Hello" + Chr$(13) + "This"


0

Response Number 3
Name: Buzzzzz
Date: November 10, 2002 at 09:44:06 Pacific
Reply:

Thankyou :)

I knew I could count on you guys here!!!!


0

Response Number 4
Name: tru
Date: November 11, 2002 at 14:09:38 Pacific
Reply:

Using the constant vbCrLf is more tactful.
Label1.Caption="Hello" + vbCrLf + "This"


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Vb an easy one? I think!!

new keyboard lacks necessary button www.computing.net/answers/programming/new-keyboard-lacks-necessary-button/14656.html

VB 6 Runtime issue I think? www.computing.net/answers/programming/vb-6-runtime-issue-i-think/10398.html

Language to read a Mailbox www.computing.net/answers/programming/language-to-read-a-mailbox/7341.html