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


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Creating a Simple Knob Application with the Measurement Studio ActiveX Controls in Visual Basic .NET

1 ratings | 4.00 out of 5
Print

Downloads

Filename: simpleknobex_visualbasicnet.zip
Requirements: View

This example demonstrates how to use of the Measurement Studio Knob ActiveX control in Visual Basic .NET. You can configure the CWKnob object as a knob or meter to explore functionality of this control.
When using any ActiveX controls in Visual Studio .NET, keep the following differences in mind:
1.) Visual Studio .NET generates a Runtime Callable Wrapper (RCW) around each control, and you must go through the Interop layer to use the controls. As a result, some class names differ from the names in Visual Basic 6.0.
2.) Hosting an ActiveX control in Visual Studio .NET requires unmanaged code permissions.
3.) Hosting an ActiveX control in a Windows Form increases the size of your project files because the entire control is embedded in the form.
For more information about using ActiveX controls in Visual Studio .NET, refer to the Visual Studio .NET help.

Requirements


Filename: simpleknobex_visualbasicnet.zip

Software Requirements


Application Software: Measurement Studio Visual Basic Support 6.0
Language(s): Visual Basic .NET
Additional Software: Visual Studio 7.0

 
1 ratings | 4.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/).