Splitter Control Overview (Windows Forms)
Important |
---|
Although SplitContainer replaces and adds functionality to the Splitter control of previous versions, Splitter is retained for both backward compatibility and future use if you choose. |
Windows Forms Splitter controls are used to resize docked controls at run time. The Splitter control is often used on forms with controls that have varying lengths of data to present, like Windows Explorer, whose data panes contain information of varying widths at different times.
Working with the Splitter Control
When the user points the mouse pointer at the undocked edge of a control that can be resized by a splitter control, the pointer changes its appearance to indicate that the control can be resized. With the splitter control, the user can resize the docked control that is immediately before it. Therefore, to enable the user to resize a docked control at run time, dock the control to be resized to an edge of a container, and then dock a splitter control to the same side of that container.
See Also
Tasks
How to: Dock Controls on Windows Forms