I have a large scrolling child form which is DockStyle.Fill inside an MdiParent form. The child form displays labels which you can drag around and they snap to grid when released from the mouse down event. This allows me to determine if one marker is placed upon another in the grid and not allow it.
All is fine until you scroll the child form. When the child form is scrolled the grid changes because the forms "left" and "top" always returns "0" no matter how far I scroll the window.
What is the proper method to call the actual left and top edge of the scrolled window in relation to the Parent?
Should I be using the horizontal and vertical scroll values to adjust this or is there another way?


Reply With Quote
