Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

CW objects & VB.NET

Greetings,
Can I create an activeX (CW objects) object dynamically unber VB.NET?
Thanks.
0 Kudos
Message 1 of 3
(6,164 Views)
Sure. For example, add a reference for cwui.ocx, drop a button on a form, and
add this code to the click event handler of the button:

Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim graph As AxCWUIControlsLib.AxCWGraph = New AxCWUIControlsLib.AxCWGraph()
graph.Location = New Point(50, 50)
Controls.Add(graph)
End Sub

This will dynamically create a graph and add it to the form.

- Elton
Message 2 of 3
(6,164 Views)
Hi,Elton
OK, but if I have to create com-dll application (under .NET) with CWAI, CWAnalysis etc, and without forms & user controls?
Vitaly.
0 Kudos
Message 3 of 3
(6,164 Views)