Questions tagged [splitcontainer]

Split Container is a object that allows the user to split a page/form in multiple sections with each section being resizable.

A split container in a WinForms application will allow for a vertical or horizontal split of the form. This split can be 50%/50% or any other percentage. The benefit is that the container can then be resized by dragging the 'bar' inbetween the panels so that one set of controls/information can be better viewed. The split container panels can also be completely collapsed so that a section of the form is hidden.

When resizing each panel gains space at the expense of another panel -> for example increasing panel1 to 75% of the screen space will mean that panel2 has the remaining 25%.

MSDN defines a split container as:

The Windows Forms SplitContainer control can be thought of as a composite; it is two panels separated by a movable bar. When the mouse pointer is over the bar, the pointer changes shape to show that the bar is movable.

122 questions
-2
votes
2 answers

c# resizing controls in splitcontainer

I have a splitcontainer with 2 panels. In the first panel is a Treeview and a Datagridview in the other. When I move the splitter, to be able to see more of the treeview, the Datagridview gets 'pushed' out of the wind
Darren Young
  • 10,972
  • 36
  • 91
  • 150
-2
votes
3 answers

Mdiparent and SplitContainer

I am using a SplitContainter in MDI parent Form. My problem is I loaded a form in panel1 named First Form. In this First Form with a button I load SecondForm in panel2. I am using this code: Form In_but = new SecondForm(); …
user1158914
  • 1
  • 1
  • 2
1 2 3
8
9