tags:

views:

9

answers:

0

For low resolution monitors, the content view of our snapin doesn't fit. I'm trying to add scroll bars. Adding the AutoScroll property to the panel doesn't seem to make a difference. I tried an event handler on the Paint on the panel, to set the panel's bounds to be the same as its parent's bounds, which works sorta. When I use the mouse to shrink the window, the scroll bars go away (no paint action fired). If I make the window bigger, either the scroll bars will draw correctly, or they will draw at the old size and not move to the new size. If I make either the horizontal or vertical large enough but not in both directions, they both disappear. How can I get scrollbars to show in the content pane?