Example Code

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

代码和文档

添加附件

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

NI社区“代码范例交流区”(Example Code Exchange)中的代码范例已获得MIT许可

贡献者