The Why and How of the SplitContainer Control - Anchoring to prevent obscuring
(Page 4 of 6 )
The text box settings in the form Dock2, which also has a SplitContainer control shown with two text boxes, are as follows:
Textbox1 in SplitContainer1.Panel1
Anchor: Top, Left, Right
Dock None
Size: 100, 105
WordWrap: True
MultiLine: True
ScrollBars: Vertical
Textbox2 in SpliterContainer1.Panel2
Anchor: Top, Bottom, Left, Right
Dock None
Size: 171,81
WordWrap: True
MultiLine: True
ScrollBars: Vertical
Th design view of the Dock2 form is shown in the next picture.

When the project is built and the form displayed, the Dock2 form appears as shown after dragging the control to the left.

When the Splitter is dragged to the right, the Dock2 form appears as shown. In both the cases, the resizing did not obscure the control as it did in the previous case (use the scroll bar in Textbox2 to see the entire text).

Next: Hide and reveal panels with nested SplitContainers >>
More .NET Articles
More By Jayaram Krishnaswamy