Example Code

Programmatically Changing the Visibility of Individual Tabs in a Tab Control

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.


  • LabVIEW

Code and Documents


This simple example shows how to programmatically change the visibility of specific tabs in a tab control. 

Sometimes it is useful to programmatically change the visibility of individual tabs in a tab control.  For example, you may only want the end user to have access to controls on a certain tab during parts of a test sequence.  When your code moves to a different part of your test sequence, then you might want to change the tabs available to the user.

This simple code demonstrates how you can use the "Page Visible" property to define the visibility of your individual tabs.

This VI was created in LabVIEW 2012.



  • LabVIEW 2012 (or compatible)

Steps to Implement or Execute Code

  1. Open " Change Tab Control Visibility 2012 NIVerified.vi"
  2. Run the program


Additional Information or References
VI Block Diagram



 **This document has been updated to meet the current required format for the NI Code Exchange.**

Michael B.
Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.