General information
Title:
Control's Position on Screen
Hi!
How can I get the control's position on the screen in a System.Drawing.Point format?
I have a mdi form (frmA), and a child (frmB), in frmB I have a button, I need to know the screen coordinates of that button.
First I was getting very close to the button's coordinate with the mouse position, but the click event can be raised by keyboard hit.
I've tried with the control location property added to the frmA and frmB location properties but the height of the caption and menus is not considered on the properties and the results are incorrect.
What can I do to achieve this?
Thanks in advance!
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only