Re: Absolute location of control
- From: "Jon Slaughter" <Jon_Slaughter@xxxxxxxxxxx>
- Date: Wed, 25 Oct 2006 06:04:19 GMT
"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
.
- References:
- Absolute location of control
- From: Jon Slaughter
- Re: Absolute location of control
- From: Jon . Slaughter
- Re: Absolute location of control
- From: Kevin Spencer
- Absolute location of control
- Prev by Date: Re: event/delegate question - newbie
- Next by Date: Re: event/delegate question - newbie
- Previous by thread: Re: Absolute location of control
- Next by thread: Implementing a company styleguid
- Index(es):