The subpane control is a collapsible container that can host other controls such as list boxes and text boxes. You add a user control to your project and then drag and drop one or more subpane controls onto the user control design surface. You can use multiple subpane controls as necessary and populate them with the controls required by the project. You then write code to associate the subpane controls with the document’s actions pane, and then program against the controls on any of the subpanes.
The control has the following properties, methods, and events.
Properties:
Text. The text that appears in the title bar of a subpane.
HighlightColor. The color of the title bar when it has been selected by the user.
GradientBeginColor. The color beginning on one side of the title bar.
GradientEndColor. The color ending on the other side of the title bar.
IsExpanded. Indicates whether the subpane is expanded and showing its list of items.
IsAnimated. Indicates whether the subpane rolls up or rolls down when it is expanded or collapsed.
Methods:
Events:
BeforeExpanding. An event that is raised before the control is expanded.
BeforeCollapsing. An event that is raised before the control collapses.
AfterExpand. An event that is raised after the control is expanded.
AfterCollapse. An event that is raised after the control collapses.