hog Posted May 4, 2003 Posted May 4, 2003 (edited) How do you get the X,Y coords of a mouse click relative to you apps form rather than the entire screen? When I get the location using Cursor.Position.X and Cursor.Position.Y I get a value way bigger than expected? Ah, just used this: pntMousePos.X = Me.Cursor.Position.X But what happens is the Me object X return 381 but 769 get assigned to pntMousePox.X?? Edited May 4, 2003 by hog Quote My website
Guest mutant Posted May 4, 2003 Posted May 4, 2003 This will do it: Me.PointToClient(Me.Cursor.Position).ToString() 'to string so you can show it in msgbox, textbox or whatever or just remove to string if you dont need to show it Quote
hog Posted May 4, 2003 Author Posted May 4, 2003 I'll give it a whirl and see what happens, cheers Quote My website
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.