|
-
Apr 8th, 2007, 04:38 PM
#1
Thread Starter
New Member
Follow cursor with a shape
is it possible to make a shape follow the cursor if so does anyone know how?
im using vb6
-
Apr 8th, 2007, 05:25 PM
#2
Hyperactive Member
Re: Follow cursor with a shape
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
-
Apr 9th, 2007, 09:39 AM
#3
Member
Re: Follow cursor with a shape
that's right!!
-
Apr 9th, 2007, 09:47 AM
#4
Re: Follow cursor with a shape
Welcome to the forums. 
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|