PDA

Click to See Complete Forum and Search --> : Putting large amounts of text into a Label??/


rino_2
Nov 9th, 1999, 12:05 AM
HI,

I’m having trouble with labels. I have made a little program and would like to add a large introduction in the beginning all in one label. The problem is when I click caption a really small box appears which is hard to work with. Is there any other way to input a caption into a label? One method that I tried was to type in the introduction into Notepad and to copy and paste it into the caption. The problem here is that only the first line will be shown.

Please Help

Richard

MartinLiss
Nov 9th, 1999, 12:11 AM
Add code to your form load event that sets the value for the label caption i.e.

MyLabel.Caption = "This is a long caption " _
& "that is difficult to enter into the property box!.

Better yet, look up resource files, create one, and store the text for the label there.

------------------
Marty

Lyla
Nov 9th, 1999, 06:38 AM
I'm not sure! I think labels Max value is 256 chars !!
Double check before going ahead.
Good Luck.

Juan Carlos Rey
Nov 9th, 1999, 08:26 AM
But you can "stick" two or more labels together to get more capacity! Just set them transparent background, no border and go on.

SteveS
Nov 9th, 1999, 11:14 AM
Try using a TextBox with

Multiline = True
BorderStyle = 0
Enabled = False
BackColor = vbButtonFace

This will look the same as a Label but allow Multiple lines of text, you can then add Scrollbars etc... if required

Hope this helps,

Steve.

shan1
Nov 11th, 1999, 11:17 AM
Make autosize property of label = true.
it will allow u to enter text as much as u want.