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

Control no longer gaining focus after putting it in a splitcontainer

I have a forms app and when it starts up I would like it to give focus to a particular text box. While I was initially developing I just whacked all the controls straight on the form and the focus command worked fine. The app is near ready and I put…
One Monkey
  • 713
  • 3
  • 9
  • 24
2
votes
1 answer

How to make ListBoxes in SplitContainers resize properly?

To reproduce this problem, Create a new WinForms project Using the WinForms designer, add a SplitContainer Set its orientation to horizontal Set its dock to fill In each of the containers of the SplitContainer, add a ListBox Set its dock to…
Sweeper
  • 213,210
  • 22
  • 193
  • 313
2
votes
1 answer

Add button control(s) to SplitContainer Splitter

Is there any way to display controls (like buttons) on the adjustable splitter that displays between the two panels in a .NET SplitContainer? Example: I don't think SplitContainer natively supports this, but overriding the control to get this…
Adam Nofsinger
  • 4,004
  • 3
  • 34
  • 42
2
votes
2 answers

Increase size of SplitContainerControl split bar

I am using a SplitContainerControl which has two panels. I'd like to increase the size of the splitter drag panel between them because it's difficult to see and click/drag. Is there a property that controls this? I can see SplitterBounds but it's…
calico-cat
  • 1,324
  • 6
  • 20
  • 36
2
votes
1 answer

Is that possible to show split container inside dialog/modal dialog in dojo?

I was trying to add SplitContainer inside dialog programatically, I am not able to success it. Could anyone please suggest me that is it possible to add SplitContainer inside Dialog? if yes please share the me the sample if you have…
user1139344
  • 21
  • 1
  • 5
2
votes
3 answers

SplitContainer that only resizes panel1

Is there a way to make the SplitContainer only adjust the size of panel1? I have a Vertical SplitContainer and when I move the splitter I would like the size of the first panel to increase/decrease, but rather than change the size of the second…
Tester101
  • 8,042
  • 13
  • 55
  • 78
2
votes
1 answer

How do I add a SplitContainer dynamically c#

At design time I have a form with a FlowLayoutPanel. I can create buttons inside it with no problems. But when I tried to add a SplitContainer, nothing happens. Later I will need to add a Splitcontainer inside another SplitContainer. So my user can…
2
votes
1 answer

How to get a list of all controls on WinForm even those in SplitContainers or Panels

A have several containers on my WinForm like Panel, SpliContainer, StatusStrip... Each of these containers contains basic elements like buttons or textboxs. I need to iterate thru all form controls (even those in Panels, SplitContainers,…
Milos
  • 143
  • 1
  • 11
2
votes
3 answers

How can I detect when a control is no longer visible?

In my current app I have a Tree control on a page of a TabControl which is inside a panel of a SplitContainer control. The tree control can thus be hidden by either hiding the SplitContainer panel, or switching to another TabPage in the…
Eric Anastas
  • 21,675
  • 38
  • 142
  • 236
2
votes
2 answers

How to correctly rename a SplitContainer WinForms control and its panels?

I've placed a split container on a form and want to rename it and its panels to something meaningful (as I am going to add more SplitContainers on this form). Butwhen I rename splitContainer1 to mainSplitContainer, its panels are still named…
Ivan
  • 63,011
  • 101
  • 250
  • 382
2
votes
1 answer

Is there a microsoft based asp.net split container?

MSDN has the functionality I'm looking for here. Since microsoft recognizes the usefulness of a split container for the web, is this page using a publically available microsoft created, .net based split container?
Maslow
  • 18,464
  • 20
  • 106
  • 193
2
votes
2 answers

Strange split container behavior when properties are bound to settings

I have a WinForms application that contains two SplitContainers. The first SplitContainer spans the entire form and its orientation is horizontal. The second SplitContainer is within the left panel of the first split container and its orientation is…
Kritz
  • 7,099
  • 12
  • 43
  • 73
2
votes
1 answer

Remove the border of a split-container after re-sizing

How can i remove the ugly color of a split container when i try to split. But in windows operating system there contain more than two panel and no border shows when resize the split container just like the folder browser and the drive separate in…
2
votes
0 answers

Expand or collapse splitcontainer with animation in WinForms

Below is how I currently collapse a splitcontainer but I would like an extra effect so that when I collapse the container it should collapse slowly so that it will be feel like animation. How can I do it this with WinForms? private void…
Thomas
  • 33,544
  • 126
  • 357
  • 626
1
vote
1 answer

How to check all textboxes inside a splitcontainer?

My program uses a split container which both panels 1 & 2 have text boxes. I am trying to run a check when the program is attempting to close that prompts users to save. I tried the following code but it doesn't seem to work since the text boxes are…
Fuzz Evans
  • 2,893
  • 11
  • 44
  • 63
1 2
3
8 9