Results 1 to 6 of 6

Thread: Putting large amounts of text into a Label??/

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Post

    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

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    Add code to your form load event that sets the value for the label caption i.e.

    Code:
    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

  3. #3
    Addicted Member
    Join Date
    Jul 1999
    Location
    Portland, OR.
    Posts
    226

    Post

    I'm not sure! I think labels Max value is 256 chars !!
    Double check before going ahead.
    Good Luck.

  4. #4
    Hyperactive Member Juan Carlos Rey's Avatar
    Join Date
    Aug 1999
    Location
    Mendoza, Argentina
    Posts
    301

    Post

    But you can "stick" two or more labels together to get more capacity! Just set them transparent background, no border and go on.

  5. #5
    Lively Member
    Join Date
    Jun 1999
    Location
    Ireland
    Posts
    96

    Post

    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.

  6. #6
    Junior Member
    Join Date
    Nov 1999
    Posts
    21

    Post

    Make autosize property of label = true.
    it will allow u to enter text as much as u want.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width