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

SplitContainer, how do stop cursor key input?

I want a c# split container that ignores cursor keys and can only be controlled with the mouse. How can I do this? This is so I can use the keyboard input in one of the side panels without simultaneously moving the split.
user540062
  • 61
  • 1
  • 3
0
votes
1 answer

Detect SplitContainer's active Panel (Visual C# Express 2010, WinForms)

I have a SplitContainer. On both Panels there are some controls filling them. I would like to determine which Panel is holding acutally focused control. I mean when control got focus - I want to know that e.g. Panel1 got focused. Is that possible to…
Joe
  • 2,551
  • 6
  • 38
  • 60
0
votes
0 answers

One of my control is not showing in intellisense

I have two split containerss in my VB.NET WinForm SplitContainer1 and SplitContainer2, however i renamed my Splitcontainer1 to SC1 and now its not showing in intellisense while coding, also when i type in manually it gives me error. So i finally,…
Django Anonymous
  • 2,987
  • 16
  • 58
  • 106
0
votes
2 answers

SplitContainer.Panel1 Selection to Changes SplitContainer.Panel2 selection

The MSDN documentation for the SplitContainer controls says: With the SplitContainer control, you can create complex user interfaces; often, a selection in one panel determines what objects are shown in the other panel. So, I have a…
tsps
  • 1,200
  • 3
  • 13
  • 25
0
votes
1 answer

Controlling RichTextBox position with other ScrollBar

I have richTextBox (dock style = fill, scrollbar = only vertical, wordwrap = false) in splitcontainer.panel1 splitcontainer.panel1.Controls.Add(richTextBox); In case when richTextBox needs to be scrolled (when its width is bigger than width of…
santBart
  • 2,466
  • 9
  • 43
  • 66
0
votes
2 answers

Expand collpase splitcontainer in win form c#

i am working with split container. my split container has two panel and horizontal orientation. in first panel there are some textboxes and one button. when i click on button then a code run to collapse Panel1 of split container. code is like …
Thomas
  • 33,544
  • 126
  • 357
  • 626
0
votes
1 answer

Split Container Anchor issues in VS2010

I have had multiple projects where the UI seems to become "corrupt" in the designer. It always seems to pertain to split containers, DataGridViews, and anchoring the DGV inside the split container. It seems the DGV anchor somehow becomes de-synced…
Origin
  • 1,943
  • 13
  • 33
0
votes
1 answer

VB.NET: Is form.show() called?

I have a very simple question. I call .show() and .hide() on a form and then I want to determine the current state. I've been checking .visible to determine if the form is visible, but I've stumbled uppon a problem. My form is being rendered inside…
Tony Bogdanov
  • 7,436
  • 10
  • 49
  • 80
0
votes
1 answer

How can I add a navigation controller to my own container view controller in iOS5?

I'm trying to create a container view controller (see screenshot) and I would like to add a navigation controller at the right, but I'm having some problems. Can you help me? When I add this code in my parent controller (viewDidLoad), I see the view…
Ricardo
  • 2,831
  • 4
  • 29
  • 42
-1
votes
1 answer

Auto adjust Label Text as I move splitter

As I move splitter to left, it hide my text(as in above image). I want to auto adjust Label Text as I move splitter. update me!
Shahid Ghafoor
  • 2,991
  • 17
  • 68
  • 123
-1
votes
2 answers

Prevent Windows form elements from leaving view when resizing from the bottom?

I have a form set up as shown in the picture below. The form simply contains a SplitContainer with two TreeViews in each of the panels, plus the label above the TreeView. Here's a picture of the form that has not yet been resized: Each TreeView is…
DK7195
  • 3
  • 1
-1
votes
1 answer

SplitContainer - Fixed Panel Height on Resize

every time I resize my form, panel2 get bigger, I want panel1 to get bigger and panel2's height to stay the same unless the user changes the splitterdistance themselves.
user3397642
  • 57
  • 1
  • 7
-1
votes
1 answer

Add new textbox after collapsing panel

I have a button that create user on my form. When I click that button, this gets executed: Me.SplitContainer1.Panel1Collapsed = True Me.BtnSave.Tag = "addNew" Me.txtUserName.Text = "" Me.txtPassword.Text = "" Me.txtRole.Text = "" Then I get 3 text…
hussy
  • 3
  • 3
-1
votes
1 answer

Screen distortion with win forms csharp for 64 bit

I have used a split container inside Tabpage. It's working fine everywhere except for a laptop which has win7 i5. We checked in other win 7 laptops but works fine. The problem is when we restore the Window and maximize it the split container does…
sidnandan
  • 39
  • 1
  • 6
-1
votes
1 answer

.NET SplitContainer using C#

I am using SplitContainer tool in C# window application I want to replace one Form for other form in splited Container panel How can I do this? I want to do in From From1 works finishes it work and show From2.. replace same place of splited…
1 2 3
8
9