Example Code

Demonstration of How to Fix the Window Size and Position of a VI

Code and Documents

Attachment

Overview

  • In some applications, because of graphical constraints of some screens or front panels, it might be necessary to ensure that an application launches with the same window dimensions and position on the screen each time.  This needs to happen regardless if a user stops the executable and changes the window size or position. This simple example program shows how this could be achieved by simply using a property node which is part of the VI class.

 

Description

  • This example shows the usage of the Window Bounds property. 

 

Hardware and Software Requirements 

 

  • Hardware: No hardware is required
  • Software:  LabVIEW Full Development System 2012 or later

 

Steps to Implement or Execute Code

  • Simply download and run it

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

Contributors