I’m having problems with a custom control I’ve created which uses the
AutoScroll feature. The problem occurs whenever child controls are added or
resized. This makes it possible to scroll too far up or to the left. The
following image demonstrates the problem:
[Click to see picture]
The red dot indicates the ‘true’ top-left position of the control, but for
some reason I can scroll to the left and above it. I’ve read something in
MSDN about having to update the AutoScrollPosition property whenever controls
are added, but I’m having trouble understanding exactly what it is I have to
do.
Can someone please help me out with this?


Reply With Quote