Hey guys, I'm using this code to draw an ellipse at the point the cursor is currently at.
[php]
Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove
Dim myGraphics As Graphics
myGraphics = Graphics.FromHwnd(ActiveForm().Handle)
myGraphics.DrawEllipse(pen:=New Pen(Color.Green), _
rect:=New Rectangle(x:=(e.X - 35), y:=(e.Y - 35), Width:=70, Height:=70))
myGraphics.Dispose()
End Sub
[/php]
However, I need it to first delete the previously drawn graphic from the form before drawing then next one as this is the effect im currently getting.
But what I want is just for a circle to follow the pointer wherever it goes.
Help?