|
-
Dec 4th, 2009, 09:30 AM
#1
Thread Starter
New Member
[RESOLVED] MousePosition to use stage as 0, 0 position, not screen.
Hey,
What I'm trying to do is to get the X and Y position of mouse but not starting from the screen upper left corner but the stage's upper left corner.
right now all I got is:
Code:
mouseCoordsLabel.Text = ("X: " & MousePosition.X - Me.Location.X & " Y: " & MousePosition.Y - Me.Location.Y)
But it gets the upper left corner of form, not stage.
Is there any way I could get the width and height of the borders that the form uses?
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
|