G
Guest
Hello,
I've got a little problem. I want to draw a string to my form with the
follówing code:
Public Sub titleSetTime(ByVal newTime As String)
Dim g As System.Drawing.Graphics
g.DrawString(newTime, New System.Drawing.Font("Microsoft Sans
Serif", 10, System.Drawing.FontStyle.Regular), New
SolidBrush(SystemColors.ControlText), 200, 2)
End Sub
But if I try this, I get a SystemNullReferenceExeption. Does sombody know why?
Thx,
Cyberdot
I've got a little problem. I want to draw a string to my form with the
follówing code:
Public Sub titleSetTime(ByVal newTime As String)
Dim g As System.Drawing.Graphics
g.DrawString(newTime, New System.Drawing.Font("Microsoft Sans
Serif", 10, System.Drawing.FontStyle.Regular), New
SolidBrush(SystemColors.ControlText), 200, 2)
End Sub
But if I try this, I get a SystemNullReferenceExeption. Does sombody know why?
Thx,
Cyberdot