By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,089 Members | 1,367 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,089 IT Pros & Developers. It's quick & easy.

Vertical Text

P: n/a
I use the following code to draw vertical text in an ownerdrawn StatusBar
The text is drawn top to bottom. Is there a way to have the text drawn
bottom to top?


Private Sub FormatClaimPermissions(ByVal sender As System.Object, _
ByVal sbdevent As System.Windows.Forms.StatusBarDrawItemEventArgs) _
Handles ClaimPermissionsHeaderStatusBar.DrawItem, _
ExtensionPermissionsHeaderStatusBar.DrawItem, _

'Formats each permission DataGrid header (StatusBar) to display vertical

With sbdevent
Dim text As String = .Panel.Text
Dim font As Font = .Font
Dim brush As New SolidBrush(.ForeColor)
Dim bounds As RectangleF = RectangleF.op_Implicit(.Bounds)
Dim format As New StringFormat(StringFormatFlags.DirectionVertical)
Graphics.DrawString(text, font, brush, bounds, format)
End With
End Sub
Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.