You can use the System.Windows.Forms.Control.PointToScreen method to convert
from client coordinates to screen coordniates and the
System.Windows.Forms.Control.PointToClient to convert from screen
coordinates to client coordinates.
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 ;/)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.