lemunk
lemunk

Reputation: 2636

c# scroll bar for a panel? for bunch of controls

More of an info question, i have a panel on the left of my form that contains label, textboxs combos etc etc, but i need to create even more on the same page (not a sepereate form etc)there is basically no space left. So im thinking of adding a scroll bar to the panel(if possible) this will enable the user to scroll up and down looking at the data break down of a multi series graph. So in short do i:

This is a design question more than anything.... and i will admit....im terrible at design, and im pretty new to winforms and all of its controls.

heres a pic!

enter image description here

Any input would be great! Many Thanks in Advance!

Upvotes: 1

Views: 2864

Answers (2)

Gabriel GM
Gabriel GM

Reputation: 6639

There are many ways you can solve your issue.

The first thing you could do is set your panel AutoScroll attribute to true

If you have different sections, tab control is definatly a good idea.

Upvotes: 0

Trevor Elliott
Trevor Elliott

Reputation: 11252

The AutoScroll property can do this for you. Just set it to True on the panel. Then place the controls so that they extend beyond the edge of the panel, and a scroll bar will appear.

It might be easier to layout the controls first while the panel is bigger, then shrink the panel afterward when they're all in the correct positions.

Upvotes: 1

Related Questions