Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006

Extending the Measurement Studio 7.0 LED Control to Create a Triangle LED

1 ratings | 1.00 out of 5
Print

Downloads

Filename: userintext.zip
Requirements: View

Using the Measurement Studio 7.0 for Visual Studio .NET 2003, User Interface controls can be customized by extending their style base classes. Measurement Studio 7.0 gives you 2 options for the LEDStyle (Round and Square). You can create a new style by creating a new class which inherits the LEDStyle class. You then specify your new class by overriding some of the properties or methods of LEDStyle. This example provides a new class called TriangleLEDStyle, which overrides the Draw() method of the LEDStyle class to draw a new LED. The new triangle LED has all of the same functionality as an ordinary LED, but has the shape of the NI Triangle Logo.

Requirements


Filename: userintext.zip

Software Requirements


Application Software: Measurement Studio .NET Support 7.0
Language(s): C#

 
1 ratings | 1.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).