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
0
votes
3 answers

C# How to force Paint event of Panel1 and Panel2 complete at the same time?

I have a SplitContainer (a NonFlickerSplitContainer one to be exact) and I treat its both panels as a single canvas to paint on. I use Graphics.DrawImage method to paint bitmaps on the panels separately. I refresh Panel1 first, then Panel2 which…
kagetoki
  • 13
  • 6
0
votes
1 answer

Catching mouse events for a custom SplitContainerDesigner

I'm trying to create a user control that will provide a draggable splitter between two panels — exactly like SplitContainer — in a custom IDesignerHost implementation. SplitContainer itself, as far as I can tell, is not an option; it will raise an…
Sören Kuklau
  • 19,454
  • 7
  • 52
  • 86
0
votes
0 answers

Vb. net split container with expand/collapse button

I have 2 panels created using split container, my question is how can I add an expand/collapse button inside the splitter of split container? I also tried dotnetbar splitter but it doesn't have a property for adding expand/collapse button.
0
votes
2 answers

Controls of one Panel of a Splitcontainer hiding below other panel of the same contianer

I have a winForms application which has a SplitContainer with two Panels and its Orientation is horizontal.The top/first Panel has a RichTextbox which spans the entire Panel.Inside this Richtextbox I have a Listbox which displays the values based on…
Vidya
  • 13
  • 3
0
votes
1 answer

Closing mdi child in SplitContainer

i'm developping a winforms application and i'm putting a mdi child form in splitcontainer.panel1. when i want to close current mdi child to open another one i can't get the child form. i'm using this code to open e new child but i want get the…
Imoum
  • 745
  • 3
  • 12
  • 24
0
votes
0 answers

C# animated SplitContainer background image

I want to make application where part of background must be animated. I can't use picturebox, because i have to set transparent background in labels and "buttons" (changed picturebox). When i set splitcontainer.backgroundimage to gif i can see no…
jasniec
  • 55
  • 1
  • 10
0
votes
0 answers

Triggering WinForm_Load() with a User Control nested in a Split Container

I'm currently working on a "Settings" screen for a project and want to implement a view similar to that found in Visual Studio, where there is a TreeView with a list of options and clicking on one of these options will load a UserControl in an…
Nischaal Cooray
  • 210
  • 2
  • 12
0
votes
2 answers

How to adjust the space between Panel1 and Panel2 in a SplitContainer?

How does one increase the size of the space separation between panels of a SplitContainer?
user3701568
  • 47
  • 1
  • 6
0
votes
1 answer

How do I reload a container view when navigating backwards using a segue?

In Xcode I am have two container views implemented in a UIViewController. I use a modal segue to navigate forward on one view which correctly loads. My problem is that when I navigate back to the previous page my other container view does not reload…
0
votes
0 answers

ForeColor being reset in SplitContainer on initialization and resize

I noticed some unusual behavior when using different fore-colored ListViewItems in a ListView inside a SplitContainer. Initially the colors aren't usually displayed (though sometimes they are, mysteriously), but they show up when items are…
bobasaurus
  • 129
  • 1
  • 9
0
votes
1 answer

Using a UserControl to Login and then enable menuStrip in Primary form

Ok so here is what i am trying to do. I have a Primary form in a C# desktop application in which i have a menuStrip and a splitContainer. On running the application, I am loading a UserControl named 'Login' to the splitContainer.Panel2 while hiding…
Abhi
  • 1
0
votes
0 answers

Trouble with SplitContainer

Perhaps I do not understand how it works... So there is a SplitContainer called 'newDevicesSpliContainer', which has got Panel1 and Panel2. I'm trying to set Panel2 visible, it does not work. I tried setting property Panel2Collapsed to false, but it…
Alex
  • 937
  • 3
  • 20
  • 44
0
votes
2 answers

WinForms SplitContainer and its spacing and resizing

I seem to have a lot of trouble getting a SplitContainer adjusted the way I like it. I have the following form called frmMain: In the form Load code I have to following code: With MainContainer .IsSplitterFixed = True .Dock =…
user1435976
0
votes
1 answer

Listview Column Width on Split Container Resize

I have a listview inside my split container. My listview contains two columns. One of which I want to be adjusted automatically upon resizing the split container. Here's a visual perspective: After resize As you can see, the columns stay the same…
Alex
  • 4,821
  • 16
  • 65
  • 106
0
votes
1 answer

Visual Studio splitcontainer and Forms

I want to add 12 small forms on a splitcontainer Panel2 of my application. That is a grid of 4x3 = 12 Forms. So in the main Form of my application, I add a SplitContainer control. And separately I have created 12 single Forms. To add the 12 forms to…
DeathCoder
  • 145
  • 1
  • 4
  • 19
1 2 3
8 9