Example Code

.NET MonthCalendar Example: Changing Visual Properties 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.

    Software

  • LabVIEW

Code and Documents

Attachment

 

Overview
This example demonstrates how to make programmatic visual changes to the .NET Month Calendar form.


Description
With Windows Vista and newer some .NET forms are rendered at run time using the current operating system theme. Depending on the theme, setting certain properties might not change the appearance. If you want to see these changes in your LabVIEW application, you should disable Windows Visual Style. This setting is then re-enabled at the end of the program to ensure that other applications display as expected. This example demonstrates just a few random property changes to show how this is accomplished.

Note: Disabling Visual Styles might affect the appearance and behavior of other controls in your application.

Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Open and run the VI
  2. Changes will not be seen until a change has been made to either the Range Selection or the Color Selection sections

Additional Information or References
VI Block Diagram

 5-320.png

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

 

 

David C

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

Comments
nileshborhade
Member
Member
on

Thank you very much 🙂