Skip to main content

Multi-Command to Make a Tab Visible

Overview

Use the TabVisible() multi-command to see a tab only when you decide you need it. 

Details

The TabVisible() command will work on an existing form or a new form that has tabsheets. There are two parts that work together for the TabVisible() multi-command. The first is the name of the tabsheet that is hidden and the second is a check box to indicate that you would like to see the tabsheet. Add these two items in the Button parameter.

tier-tabvisible01.png

Also, in the Object Inspector, deselect the TabVisible property for the tab that will initially be hidden.

tier-tabvisible01a.png

When you first open the form, the tab will be hidden.

tier-tabvisible02.png

To see the tab, select the Check here to see the Hidden Tab check box, then click the button. This functionality also works in reverse; you can clear the box, click the button, and the tab will be hidden again.

tier-tabvisible03.png

If you don’t want to select the check box, you could also move the check box to the Invisibles tab or hide the check box and then add the line TierCheckBox1.Check between [BeforeAction] and .TabVisible() on the Button parameters.