Hi,
I am looking to retrieve the relative position of a control to it's
container form. The problem is that the form itself is scrollable and
when the user has scrolled to the bottom of the form the location of
the control appears to be relative to the top left corner of the
visible part of the form rather than the entire form.
I have tried using PointToClient and setting the left and top
properties of the control but nothing seems to work.
Any ideas on this would be great
Thanks
Karen
Sanjeeva - 03 Aug 2005 07:23 GMT
Override Scroll events on the form and keep calculating the position.
Regards,
Sanjeevakumar Hiremath
http://sharpnet.blogspot.com