Relative Position of Control in Scrollable form

K

karen.mcdonagh

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
 

Ask a Question

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.

Ask a Question

Top