How to Disable and Grey Tab Controls in LabVIEW Programmatically

Updated Jun 19, 2026

Environment

Software

  • LabVIEW

You can programmatically disable and gray out (dim) specific pages of a Tab Control in LabVIEW. This is useful when you want to prevent user interaction with certain tabs under specific conditions while keeping other pages active.

To disable and gray out a page of a Tab Control, use the Page Enabled State property:
  1. Obtain a Reference to the Tab Control:

    • Right-click your Tab Control on the front panel and select Create» Reference.
  2. Place a Property Node on the Block Diagram:

    • From the Functions Palette, go to Programming » Application Control» Property Node.
    • Wire the Tab Control reference to the Property Node.
  3. Set the Property Node to "Pages":

    • Right-click the property node, select Pages.
    • This outputs an array of references to each tab page.
  4. Index the Page You Want to Disable:

    • Use an Index Array function to select the page reference you want to disable (e.g., index 0 for the first page).
  5. Add Another Property Node for " Page Enabled State":

    • Wire the page reference to a new Property Node.
    • Set this property to Page Enabled State.
  6. Assign the desired state
    • Right-click the property terminal and select Create>>Constant.
    • Choose one of the following values:
      • Enabled
      • Disabled
      • Disabled and Grayed Out


 

Run the VI. The selected tab page becomes disabled and appears grayed out, preventing user interaction while other tabs remain functional.