Example Code

Always On Top

Code and Documents

Attachment

Overview

This VI allows you to programmatically set the Always On Top property to any window currently open.


Description

This example shows off one of the user32.dll features. This command allows you to control what window can have the "Always On Top" property. This is the same that allows Task Manager to be on top of other Windows.

 
Requirements

  • LabVIEW 2013 (or later)
  • Windows XP or Windows 7


Steps to Implement or Execute Code

1.Open Test.vi

2.Open RemoveAlwaysOnTop.vi

3.Run RemoveAlwaysOnTop.vi

4.Click “Set Always On Top”

5.Test to see if it worked

 

Additional Images or Video

CodeSnippitAlwaysOnTop.png

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


 

 

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