Scrollbar co-ordinates problem

Joined
Feb 15, 2006
Messages
1
Reaction score
0
Consider a panel with both horizontal and vertical scrollbars in a windows form.
During runtime, just move the scrollbars and check for the co-ordinates of the top-left corner of the panel. It always says 0,0 and not the relative position, as the scroll bar is moved. How can I find the exact co-ordinates of the top left corner of the panel considering the part which got moved due to scroll bar?
 

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