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

Measurement Studio 2D Graph Events in Visual Basic .NET

5 ratings | 3.80 out of 5
Print

Downloads

Filename: 2d_graph_events_in_vb_.net.zip
Requirements: View

This example displays the many ways you can interactively and programmatically interact with data displayed on a Measurement Studio Graph (CWGraph) control in Visual Studio .NET. Use the TrackMode property to pan, zoom, or generate cursor or plot events in the graph. See the description below the TrackMode listbox for information about the selected TrackMode.

You can set the TrackMode option to one of the following values either in the graph property pages or programmatically:
- Plot Area Events
- Plot & Cursor Events
- Cursors (CursorChange event)
- PanXY
- PanX
- PanY
- ZoomXY
- ZoomX
- ZoomY

For supplementary descriptions of these TrackMode options, please refer to the readme.txt file in the attachment.

Note: This program was converted from Visual Basic 6.0 with the Visual Studio .NET Upgrade Wizard utility. To convert an existing Visual Basic 6.0 project, open the .vbp file inside Visual Studio .NET and follow the instructions on the screen. Some upgrade warnings are generated if the Visual Studio .NET compiler does not know how to convert certain pieces of code or where the programmer must change or add to the existing code.

When using any ActiveX controls in Visual Studio .NET, keep the following differences in mind:
- 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.
- Hosting an ActiveX control in Visual Studio .NET requires unmanaged code permissions.
- 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: 2d_graph_events_in_vb_.net.zip

Software Requirements


Application Software: Measurement Studio Visual C++ Support 6.0
Language(s): Visual Basic .NET

 
5 ratings | 3.80 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/).