I'd like to draw a circle using after a mouse click using the Paint event. I'm able to do it by calling CreateGraphics but I was told this is not a good practice.
Here is what I have:
Honestly I'm pretty lost. Any help would be greatly appreciated.
Here is what I have:
VB.NET:
Private Sub Form1_Paint1(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
If Control.MouseButtons = Windows.Forms.MouseButtons.Left Then
Dim g As Graphics = e.Graphics
Dim pn As New Pen(Color.Blue, 3)
g.DrawEllipse(pn, 50, 50, 200, 100)
End If
End Sub