Information générale
Titre:
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!
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement