Re: Absolute location of control

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Kevin Spencer" <spam@xxxxxxx> wrote in message
news:e$G93099GHA.1200@xxxxxxxxxxxxxxxxxxxxxxx
This can be done by using the System.Windows.Forms.Control.PointToScreen
(http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.pointtoscreen.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/library/system.windows.forms.control.pointtoclient.aspx)
from the Form to get the screen coordinate of the point relative to the
Form.


duh ;) Shows how much I'm really thinking ;/

Thanks,
Jon


.