Results 1 to 7 of 7

Thread: Text

  1. #1

    Thread Starter
    Fanatic Member joltremari's Avatar
    Join Date
    Sep 2000
    Location
    Mississippi
    Posts
    674
    Is there a way to center text vertically in a text box or label?

    Thanks,

    JO

  2. #2
    Hyperactive Member
    Join Date
    Oct 2000
    Posts
    400
    Nope.

  3. #3
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    You can draw it vertically in a picturebox.
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  4. #4
    Guest
    For a label, you can simply resize it at design time to fit your needs.

  5. #5
    Guest
    Or you can use vbCrLf.

    Code:
    Label1.Caption = "H" & vbCrLf & "e" & vbCrLf & "l" & vbCrLf _
    & "l" & vbCrLf & "o" & vbCrLf & "W" & vbCrLf & "o" & vbCrLf _
    & "r" & vbCrLf & "l" & vbCrLf & "d" & vbCrLf

  6. #6

    Thread Starter
    Fanatic Member joltremari's Avatar
    Join Date
    Sep 2000
    Location
    Mississippi
    Posts
    674

    I'm sorry

    I'm sorry, I didn't make myself clear. What I meant by center vertically is not
    h
    e
    y

    I meant the Alignment. Just like -left and right justify- and -center justify- is in relation to the left and right side of your text box or label.

    Can you justify text in relation to the top and bottom of you text box or label.

  7. #7
    Hyperactive Member
    Join Date
    Oct 2000
    Posts
    400
    Not using the standard text box and label controls.

    You can make your own activex controls that would let you, but it'd be an awful low of work.

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