Example Code

Programmatically Change Color of Multiple Objects using LabVIEW

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.


  • LabVIEW

Code and Documents


  1. Overview
    • This example shows how to Programmatically Change Color of Multiple Objects
  2. Description
    • If you have a number of front panel objects in a VI set to one color and want to change them all to another color programmatically, the typical method is to use property nodes to access each item and change the color individually.  This would require programming property nodes for nearly each front panel object type.  Another way is to take advantage of system colors.  For more information, refer to KnowledgeBase 54TG6ERQ: Changing System Colors.
  3. Requirements
    • LabVIEW 2012 (or compatible)
  4. Steps to Implement or Execute Code
    • Run VI
    • Change colors and see what happen
  5. Additional informations or Reference

 Change System Colors LV_2012_NI_Verified.png 

Please note:  this is not the intended use of the system colors feature.  This will affect the appearance of all programs running on your computer!


If a problem occurs and the program is not able to set the system colors back to their default values when the VI stops, logging out and logging back in to your Windows account will reset your system colors.


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

Alex Person
NI-RIO Product Support Engineer
National Instruments

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