Vertical text

  • Thread starter Thread starter Michel Vanderbeke
  • Start date Start date
M

Michel Vanderbeke

Hello,

Is it possible to turn the text of a label 90° to the left or the right?

Greetings,

Michel
 
Hello,

Is it possible to turn the text of a label 90° to the left or the right?

Greetings,

Michel

I don't believe the label supports this, but you could simulate this
with a picturebox (or just draw it straight onto the form):

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim bmp As New Bitmap(20, 20)
Dim g As Graphics = Graphics.FromImage(bmp)
g.DrawString("My Text", Me.Font, Brushes.Black, 0, 0)
' bmp.RotateFlip(RotateFlipType.Rotate90FlipNone) ' Right
bmp.RotateFlip(RotateFlipType.Rotate270FlipNone) ' Left
Dim pb As New PictureBox()
pb.Image = bmp
Me.Controls.Add(pb)
End Sub

Thanks,

Seth Rowe
 
Back
Top