This can be done by using the System.Windows.Forms.Control.PointToScreen
(
http://msdn2.microsoft.com/en-us/lib...ttoscreen.aspx)
method to get the absolute screen coordinate of the point relative to the
Control, and then using the System.Windows.Forms.Control.PointToClient
method
(
http://msdn2.microsoft.com/en-us/lib...ttoclient.aspx)
from the Form to get the screen coordinate of the point relative to the
Form.
--
HTH,
Kevin Spencer
Microsoft MVP
Short Order Coder
http://unclechutney.blogspot.com
What You Seek Is What You Get
<Jo***********@gmail.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
>
Is there an easy way to work with a controls location relative to the
form that it is in instead of the container? I need to do some
calculations based on where the control in the form but I can only seem
to find properties that give the controls location w.r.t. its container
which will through off all my calculations ;/
(right now I see the only way to do is is first convert everything to
screen coordinates then from there to form coordinates ;/)
Thanks,
Jon