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
1
vote
1 answer

can not dispose controls in splitcontainer

i try to dispose controls in split container using this code. foreach (Control c in splitContainerMain.Panel2.Controls) { c.Dispose(); } but problem is split container has contains two controls and get count is two. but i try to dispose…
1
vote
2 answers

DataGridView size is out of splitContainer panel even the Dock property is Fill

There are a SplitContainer and couple of DataViewGrids. In Designer I docked DataViewGrids to Panel1 and Panel2 of SplitContainer respectively. So, in designer everithing seems to be OK. But when I start the program, the DataGridView seems like it's…
moldov
  • 31
  • 2
  • 6
1
vote
1 answer

Winform SplitContainers redraw issue

I have added a SplitContainer inside another SplitContainer's Panel. Everything redraws fine when the splitters move. But resize of inner SplitContainer doesn't work correctly if the main SplitConainer's size changed by the main form's…
CharithJ
  • 46,289
  • 20
  • 116
  • 131
1
vote
4 answers

Constrain the movement of a SplitContainer in C#?

I have a SplitContainer in my form. On the 1st panel I have a TreeView and a ListView on the 2nd. (Classic) Now I want to limit the size of the 1st panel (with the TreeView) to 250 pixels wide. I wish to block the separator from moving too much (or…
Vercas
  • 8,931
  • 15
  • 66
  • 106
1
vote
1 answer

How to Change the DevExpress Split Container Control Pannel Name?

Any body please help how to change the DevExpress splitContainer control Panel Name.
Renju Vinod
  • 254
  • 1
  • 3
  • 11
1
vote
1 answer

Split Windows with panels

I'm reading a Windows Forms book and I came to one example which is pretty confusing to me. Here are two pictures, the first is the initial state, and the second is when the user click the Hide button. This form contains two split containers, one…
1
vote
0 answers

split container will not updating

I have a split container in one form. In the left panel, job information is displayed and in the right panel, a calendar is drawn in which the order periods are displayed graphically. That works pretty well as well. But now you can place stickers in…
1
vote
2 answers

How to center a modal Form on a specific Panel of a SplitContainer

I have GUI which is split in two pieces using a SplitContainer Control. One part is a navigation Panel, the other a workspace Panel. When I open the app, on start-up a new Form appears (using ShowDialog()), to welcomes Users. I would like to show it…
user8666372
1
vote
1 answer

How to restore and maximize a form without flickering and layout overlapping?

In my windows forms application, I added a SplitContainer control. In the panel1 of SplitContainer, I have a ListBox and in the panel2 of SpliContainer, I have two buttons. on the mouse move of ListBox I want to select the ListBox item. below are my…
Arulpriya
  • 173
  • 10
1
vote
1 answer

C# splitContainer1 resize child control

I have a splitContainer. I want to resize the form inside the splitContaner's panel to scale with when I move the splitter as below. But my form doesn't get redrawn. Any suggestion, thank so much! private void…
LN22
  • 133
  • 10
1
vote
0 answers

SplitContainer "Cannot access a disposed object" at launch

I wrote a small app that I've distributed to several coworkers. It works great most of the time. But users occasionally see the following exception. From talking to them, it seems to happen the first time they run it and never…
1
vote
0 answers

Menu Strip in form with Split container (currently being fixed to either panel)

As you can see in the image, my menustrip is being fixed to panel B. What i'm aiming for is to naturally have the menustrip not be in the splitpanel and be docked to the top of the window with no parent. I can't seem to get it out of the…
PersuitOfPerfection
  • 1,009
  • 1
  • 15
  • 28
1
vote
2 answers

Setting focus to previous control

I have an issue with a splitter panel losing control and need to set it back. My application uses a SplitContainer; and when my control loads data in panel2 of splitter, focus is shifting to panel1. There are controls which are tabStop = true in…
Megha
  • 21
  • 4
1
vote
1 answer

Forcing DataGridView to fill available space in SplitContainer

I'm in the process of writing a Windows Forms application that uses two nested SplitContainers with DataGridViews in two out of the three available areas, as shown in the following image. I've wired the Settings and form initialization to allow the…
ecfedele
  • 306
  • 3
  • 15
1
vote
2 answers

Auto resize the panels of SplitContainer

in a splitcontainer if I write splitcontainer1.panel1.visible = false; it does not cause the panel2 to fill all the space of the splitcontainer but this is what I actually need. can you please help me how to achieve this? thanks.
Bohn
  • 26,091
  • 61
  • 167
  • 254
1 2 3
8 9