## Using switch and case to simulate a vertical tab-view.

This view is only displayed when tab 1 is selected.
This view is only displayed when tab 1 is selected.
This view is only displayed when tab 1 is selected.
This view is only displayed when tab 1 is selected.
This view is only displayed when tab 2 is selected.
This view is only displayed when tab 2 is selected.
This view is only displayed when tab 2 is selected.
This view is only displayed when tab 2 is selected.
This view is only displayed when tab 3 is selected.
This view is only displayed when tab 3 is selected.
This view is only displayed when tab 3 is selected.
This view is only displayed when tab 3 is selected.

This XForms example shows how the switch and case statements can be used to simulate a multi-part form with a row of vertical tabs at the left side of the form. Background colors are used to show which tab is the currently selected tab.