Help - Cursor Coordinates

xZirc
01-14-2008, 10:49 AM
I'm trying to make an image component move towards the location of a mouse click on a form; my problem is that I don't know how to detect the .left and .top properties of where the cursor click took place.

What values store the X and Y of the cursor over the form? I'm using Form_Click() as my sub for this process.

user name
01-14-2008, 01:37 PM
Try the mousedown or mouseup events then you can get the X and Y.

xZirc
01-15-2008, 10:45 AM
Thanks, this is exactly what I needed : )

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum