Panel AutoScroll - How can I tell when the scrollbar is visible?

  • Thread starter Thread starter newsgroper
  • Start date Start date
N

newsgroper

I set the AutoScroll property of a windows panel to true. How can I
tell when the scrollbar becomes visible?
 
The only means I can see of doing this is to iterated over the contents of
the panel and evaluate each to see if its perimeter is outside the actual
bounds of the control (and remembering to account for the AutoScrollMargin
and AutoScrollMinSize as well.) This is very indirect and certainly not
proof positive to work but its the best I can come up with.

--Ken
 
Back
Top