Example Code

How do I Hide a Tab 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.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
 This example uses the visible property of each page in tab control to determine if it is visible or not.

Description
You can use the Pages property of the tab control to get access to an array of page references within the tab control and then use the visible property of each page to determine if it is visible or not.

Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Set the value of Tab Page to Hide.
  2. Run the VI.
  3. Change Page Visible to conrol the tab page to be visible or not.

 

Additional Information or References

VI Snippet

1.png

 

 

 

 

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

 

 

National Instruments
Applications Engineer

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