I have a form and would like to know the x and y positions on the form... How can I do this?
Printable View
I have a form and would like to know the x and y positions on the form... How can I do this?
x and y positions of what?
the form relative to the monitor? where the mouse is on the form? please be more specific
orVB Code:
Me.Location
VB Code:
Me.Left Me.Top
I have a pciture on the form and I want the user to click on a x and y position on the form and a second pic loads. But first I need to know the x and y position on the pic... For example I have a pic of Windows XP and I when the user clicks the Start button (the pic on the form) a second pic will load... I need to know the x and y of the start button..
There is every chance I've misunderstood what you're trying to do, but...
Why don't you put a transparent control (e.g. a Panel) over the picture of the start button and use the Click event of the control to load your second picture?