How Do I Center a VI When Running It as an Executable?

Updated Oct 27, 2020

Environment

Software

  • LabVIEW

I want my executable built in LabVIEW to center itself on my monitor when I run it. How do I accomplish this?

  1. Within the Startup VI of your executable click File >> VI Properties...
  2. Choose the Window Run-Time Position option in the Category dropdown menu.
  3. Change the Position dropdown menu to Centered.
  4. Build your executable as normal.

Additional Information

If you'd like your application to automatically center itself without having to click the run button, you have to select the "Run when opened" option within the Source File Settings. See this link for more information: Why Doesn't My LabVIEW Executable Run Automatically When Opened?

There is no way to center the window automatically upon opening without automatically running the executable.