Collapsible Panel






2.82/5 (9 votes)
Jan 12, 2005

67834

1652
A collapsible panel user control.
Introduction
Ever ran out of screen area to display all of the form widgets? Here's the solution, a control to manage your user interface widgets. A two state control container that expands and shrinks, giving a tidy effect to the UI.
Using the code
- Add CollapsablePanel.cs to your project or add the assembly to your project references.
- Open the host form in design view, drag and drop the control on the form.
- Drop all of the widgets required onto a panel (
System.Windows.Forms.Panel
). - Arrange the widgets and set the "
ContentPane
" property of the control to the panel you made. - Set the "
Button_Text
" for the caption text, "Animation_Rate
", and "ContentPane_HEIGHT
" (maximum height for the content pane).