Drawing Text On A VB2019 Form

  • Thread starter Thread starter Developer Dude
  • Start date Start date
D

Developer Dude

Guest
Hi:

I am trying to display text on a vb2019 form but it doesn't work. Can someone please give me a hand.

Here is my code. Thanks.

Private Sub Form3_Load(sender As Object, e As EventArgs) Handles MyBase.Load

Dim myGraphics As Graphics = Me.CreateGraphics
Dim myFont As Font
Dim myBrush As Brush
myBrush = New Drawing.SolidBrush(Color.DarkOrchid)
myFont = New System.Drawing.Font("Verdana", 20, FontStyle.Underline)
myGraphics.DrawString("Visual Basic 2019", myFont, myBrush, 10, 10)

End Sub

Continue reading...
 

Similar threads

Back
Top