is it possible to make a shape follow the cursor if so does anyone know how?
im using vb6
Printable View
is it possible to make a shape follow the cursor if so does anyone know how?
im using vb6
Hi. Yes, it is possible.
You should try something like this:
;)Code:Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.Command1.Left = X
Me.Command1.Top = Y
End Sub
that's right!!:)
Welcome to the forums. :wave:
Although RS_Arm's code does work, there needs to be a way to stop if from following the cursor as that behavior can be very annoying.
Is this for a game?