Click here to Skip to main content
15,074,483 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to add a scroll bar in Panel in c# in window application.

So what is the method. Tell me.
Updated 31-Oct-17 22:16pm
Tag it! WPF, WinForms, what?

Pravin Patil, Mumbai 12-Oct-11 1:57am
+5 link....
ajit9188 5-May-12 6:30am
i have to use vertical scroll in panel.
on button mouse over event scrolled up or down.
plz help me
Can I assume it's Forms?

You don't need to add scroll bars. They are already there. Look here:[^] — you see, Panel is ScrollableControl.

To enable scrolling of the content of the panel, all you need to do is using 5 properties starting with AutoScroll…. Load the help MSDN page referenced above, click on each of those properties and read these 5 help pages. You will also find comprehensive code samples. This stuff is really pretty simple.

Good luck,
just it's a one line

panel1.AutoScroll = true;
CHill60 28-Dec-13 8:51am
Essentially the same solution as SAK 2 years ago

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900