Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control's Position on Screen
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Control's Position on Screen
Divers
Thread ID:
00825326
Message ID:
00825326
Vues:
56
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
Fil
Voir

Click here to load this message in the networking platform