Is there a way to center text vertically in a text box or label?
Thanks,
JO
Printable View
Is there a way to center text vertically in a text box or label?
Thanks,
JO
Nope.
You can draw it vertically in a picturebox.
For a label, you can simply resize it at design time to fit your needs.
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
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.
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.