Expander

The Expander control is a special kind of control container that can be expanded or collapsed and that is useful for organizing your controls. The following is an example of Expander with nested controls:

image

You must use a panel, as in the preceding example, if you want to add multiple visual elements because the Expander’s Content property supports just one element. You access members by simply invoking their names as if they were not nested inside the Expander. Figure 32.7 shows the Expander in action.

Figure 32.7 Implementing the Expander and nesting controls.

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.