Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control's Position on Screen
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Control's Position on Screen
Miscellaneous
Thread ID:
00825326
Message ID:
00825326
Views:
57
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
Map
View

Click here to load this message in the networking platform