From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Maximize and Minimize LabVIEW Front Panel Programmatically

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 examples demonstrates the Front Panel Window State property in VI Server.

 

 

Description

This VI shows how to use the Front Panel Window State property to maximize, minimize, and restore the front panel of the VI.

 

 

Requirements

LabVIEW 2012 (or compatible)

 

 

Steps to Implement or Execute Code

1. Download and Save the attached VI to your computer

2. Run the VI
3. Click the buttons on the left to maximize, minimize or restore the size of the Front Panel

 

 

Additional Information or References

The example is set-up to perform the functions when the user clicks a button on the Front Panel, but the idea can be implemented to maximize or minimize the screen after any type of event.

 Resize Front Panel Programmatically.PNG

 

 

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

Product Support Engineer
National Instruments

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