BlakeMcKenna
asked on
Getting the absolute position of a control on a form?
I am trying to figure out how to get the absolute position of a control. I know about the Top/Left properties. The scenario is that I have a MDI form and ChildForms within it.
I'm trying to figure out what the Top/Left values are for a control on a ChildForm in relation to where the ChildForm is located within the MDI Form.
Thanks,
I'm trying to figure out what the Top/Left values are for a control on a ChildForm in relation to where the ChildForm is located within the MDI Form.
Thanks,
ASKER
Can you show me an example please...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Idle_Mind....exactly what I was looking for!
*You can also use the Control itself to get its own screen coords. Pass the Point (0, 0) to its PointToScreen() method:
Dim pt As Point = PictureBox1.PointToScreen(