How do you add a scrollbar to a Panel control with many controls in windows form application?
views:
1168answers:
2
A:
First you'll have to set set the height & width of the Panel - something like this:
<asp:Panel style="height: 200px; width: 200px" ... >
then add the overflow style attribute to the panel and set it to "auto" - like this:
<asp:Panel style="height: 200px; width: 200px; overflow: auto;" ... >
Kirtan
2009-04-08 14:51:59
This is assuming he is talking about ASP.NET and not WinForms/WPF.
Samuel
2009-04-08 14:59:07
Unfortunately, the tags changed after the answer was posted.
Jeff Yates
2009-04-08 15:07:45
+2
A:
Just set the AutoScroll
property of your Panel
to true and it will handle adding the scrollbars for you.
this.panel1.AutoScroll = true;
Samuel
2009-04-08 15:09:03