I've searched for vertical text, but was unable to find an answer on how to display vertical text in a label; eventhough there is an indication that it can be done.
I tried to use the following sub but all I can get to display a emptyness.
VB Code:
Public Sub DrawYAxis() Dim bm As Bitmap = New Bitmap(30, 50) Dim g As Graphics = Graphics.FromImage(bm) 'Graphics object created from bitmap Dim drawFont As New Font("Arial", 8) Dim BlackBrush As New SolidBrush(Color.Black) Dim What As String = "Y Axis" g.DrawString(What, drawFont, BlackBrush, bm.Height, bm.Width) g.TranslateTransform(CSng(bm.Width / 2), CSng(bm.Height / 2)) g.RotateTransform(90) YAxisLabel.Image = bm g.Dispose() End Sub
any guide to the blind will be appreciated! Thanks.




Reply With Quote