To use the autoscroll property of the panel, I do this:
panel.AutoScroll = true panel.VerticalScroll.Visible = False or panel.HorizontalScroll.Visible = False
To find out the dimensions of the scrapers, use
SystemInformation.HorizontalScrollBarHeight SystemInformation.VerticalScrollBarWidth
This way you can resize the panel when scroolbar is displayed.
LangitKTV
source share