marioraposo
asked on
.net compact framework rotatetransform
As I can nor use RotateTransform in .net compact framework
how can I draw a string rotated 90 degrees in a panel ?
how can I draw a string rotated 90 degrees in a panel ?
ASKER
when I write you code in vb.net
Dim formGraphics As System.Drawing.Graphics = Panel2.CreateGraphics()
Dim drawString As String = "Sample Text"
Dim Brush1 As SolidBrush = New SolidBrush(Color.White)
Dim Font1 As Font = New Font("ARIAL", 20, FontStyle.Bold)
Dim x As Single = 150.0F
Dim y As Single = 50.0F
Dim drawFormat As New System.Drawing.StringForma t(System.D rawing.Str ingFormat. DirectionV ertical)
Error 1 'DirectionVertical' is not a member of 'System.Drawing.StringForm at'
formGraphics.DrawString(dr awString, Font1, Brush1, x, y, drawFormat)
formGraphics.Dispose()
Dim formGraphics As System.Drawing.Graphics = Panel2.CreateGraphics()
Dim drawString As String = "Sample Text"
Dim Brush1 As SolidBrush = New SolidBrush(Color.White)
Dim Font1 As Font = New Font("ARIAL", 20, FontStyle.Bold)
Dim x As Single = 150.0F
Dim y As Single = 50.0F
Dim drawFormat As New System.Drawing.StringForma
Error 1 'DirectionVertical' is not a member of 'System.Drawing.StringForm
formGraphics.DrawString(dr
formGraphics.Dispose()
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I replaced the statement and I have the same error
Error 1 'DirectionVertical' is not a member of 'System.Drawing.StringForm atFlags'
Please notice that I am using the compact framework
Error 1 'DirectionVertical' is not a member of 'System.Drawing.StringForm
Please notice that I am using the compact framework
ok, in that case u can use Microsoft.WindowsCE.Forms classes:
http://msdn.microsoft.com/en-us/library/ms404359.aspx
http://msdn.microsoft.com/en-us/library/ms404359.aspx
Open in new window