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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Word How to rotate individual letters in word 2016 0
Vertical Text 1
DateTimePicker 2
Picking the right control 1
Right-align text in combobox 2
Vertical text 5
Toolbarbutton as toggle 1
Formatting strings 3

Back
Top