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
2 answers

Forcing re-sizing to be an odd multiple of 8

I have a couple of split panels nested inside of each other. The problem is, I'm rendering an 8x8 tiled game inside of the center panel. Basically, the height and width of the panel need to be an odd multiples of 8 so I can find the center tile…
Freesnöw
  • 30,619
  • 30
  • 89
  • 138
0
votes
0 answers

Adding UserControl to SplitContainer not Filling panel

I have two split containers. splitContainer_Top & splitContainer_Bottom - which is inside of the splitContainer_Top so that I have three panels to work with. Here's a screen example of the splitcontainer panels: I'm am trying to replace the…
0
votes
0 answers

Anchored DataGridViews not expanding as expected on installation on other computers

I'm working on an C# WinForms App in Visual Studio 2022. Part of the application is a user control that has several nested SplitContainers which in turn contain either a DataGridView that is docked to fill the entire Panel (which seems to be working…
0
votes
0 answers

Layout of invisible SplitContainer rearrange when become visible only

I want to restore a saved layout of a Windows Form. It contains a SplitContainer and I would also like to restore the SplitterDistance. That all doesn't look nice if I do it while the Form is visible. Therefore I tried to set the…
UHM
  • 303
  • 1
  • 7
0
votes
1 answer

How fill and autoresized in splitContainer

I have filled splitcontainer. legend for image: SplitContainer ListViews Spliter Need: blue lines show what to do with a ListView.
Mediator
  • 14,951
  • 35
  • 113
  • 191
0
votes
0 answers

Unable to modify protected control on design on inherited user control

I have two UserControl, one inherited from the other. This controls have two DataGridView, contained in a SplitContainer. In the "base" user control, I defined access modifier for both DataGrid and the SplitContainer to protected. In the design mode…
CR0N0S.LXIII
  • 349
  • 2
  • 11
0
votes
2 answers

Top ListView in SplitContainer won't add vertical scrollbar

I have a Winforms app with two ListViews in a SplitContainer. When I drag the splitter to hide part of the Panel2 ListView items, it automatically adds a vertical scrollbar. When I drag the splitter to hide part of the Panel1 ListView items, it…
RJBreneman
  • 787
  • 7
  • 21
0
votes
1 answer

SplitContainer design vs run is different VB.NET VisualStudio

I've been struggling to figure this one out, therefore I figured it was time to finally ask you guys for assistance. I've created a Visual Basic Win Form via Visual Studio to which I added multiple split containers to get different panels. The…
0
votes
2 answers

Not able to display data in detail page using splitcontainer in sapui5?

I am using splitcontainer in my application. I used two views one for Master page and other one for detail page. This is my view code: Main.view.xml(which holds Master and detail views)
0
votes
0 answers

How to keep splitcontainer panel size to a ratio?

I have a splitcontainer with two panels in a windows form. I keep the first panel twice the larger the second panel. But when I change the panel orientation to Vertical the first panel which appears on left now becomes smaller in the size(width)…
ChathurawinD
  • 756
  • 1
  • 13
  • 35
0
votes
1 answer

Synchronize RichTextBox Vertical Scrolling with SplitContainer panel scrolling

I have a win form with a SplitContainer The SplitContainer's panel1 consists of a RichTextBox. Panel2 AutoScroll is set to true. I want to synchronize the scrolling of RichTextBox and Panel2 vice versa. How can I do that? any idea? I've tried…
Tun
  • 1,345
  • 13
  • 34
0
votes
1 answer

Mdiform resizing occurs form docking error

I'm using SplitContainer (It's contain two panels) control under my MdifForm.I'm using following code to showing my exist forms under SplitContainer panel2 With My_Form .MdiParent = Me SplitContainer.Panel2.Controls.Add(My_Form) …
Levent
  • 1
  • 1
0
votes
3 answers

SplitContainer's panel as the MDI parent for other forms

I have got a control with a Splitcontainer added. I want to place another forms on the second panel (Panel2). However, it is not possible to set the MDIParent property of a brand new form to Panel2. Thus, the question is - how can I set the…
Jamie
  • 1,092
  • 3
  • 22
  • 44
0
votes
0 answers

Split Container Indicator flickers when on moving it

We have a split container added in our WinForm application. The problem is that when I move the splitter indicator from left to right or vice-versa to resize the two panels, it starts to flicker. Below are the few observations related to…
Siddhant
  • 571
  • 1
  • 8
  • 32
0
votes
1 answer

SplitContainer - What causes the inconsistent behaviour I experience when the orientation is set to horizontal?

Starting from scratch in a new project in which the properties of the default Form1 form have not been altered I drop a SplitContainer on the form and set its properties to: Anchor - Top, Left Dock - Fill Orientation - Vertical I then drop a…
The Thing
  • 625
  • 1
  • 9
  • 23
1 2 3
8 9