Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX controls in .Net

I'm using the Measurement Studio VB6 activeX controls in a .net application. Because of some conflicts on my machine, I uninstalled Measurement Studio 6.0 and reinstalled it. Now, when I open my .Net application none of my forms display my controls (i.e., graph control, number edit control). Do I have to drag all of these controls from the toolbox back onto my form?

Thanks,
Philip
0 Kudos
Message 1 of 4
(4,589 Views)
Does an error come up when you open these forms in Visual Studio .NET? If so, what is the error? Are the ActiveX controls installed correctly? What happens if you try to add one of the Measurement Studio ActiveX controls to a new VB6 or Visual Studio .NET application?

- Elton
0 Kudos
Message 2 of 4
(4,589 Views)
Originally, an error did appear when I tried to show a form. To fix this, I added the NI controls to my ToolBox (they weren't there after the uninstall) and also added references to the NI COM objects in the Solution Explorer. After that, my forms display, but the NI user interface controls do not (graphs, number edits, etc.). The non UI controls seem to work (cwserial, cwarray), or I can at least access the properties.

I tried to add a graph to my form, but I get the following error:

"A dependent .net assembly "interop.stdole" could not be found"

This assembly is part of my project references in the Solution Explorer.

In the references in Solution Explorer, I seem to have a problem with nationalinstruments.common and nationalinstruments.ui
(at least they have a warning icon beside them....however, even before I uninstalled studio 6.0 they had the icon, but my app still worked).

Thanks,
Philip
0 Kudos
Message 3 of 4
(4,589 Views)
the nationalisntruments.common and natioanalinstrumets.ui would only be used if you use the newer Measurement Studio 7.0 .NET UI controls. You dont need them as references if you are only using the activex controls. When adding activex control, the IDE creates the iterop wrappers for you ( prolly called CWUICOntrolsLib and AxCWUIControlsLib)

I tried adding the activex slider in the project, and then unregistering the control. The slider disappear ( as it should ), but when i registered the control again, the slider reappeared. I doubht the Measurement Studio uninstaller would mess around with the project in any way, so what you are seeing is something a property of the IDE (Visual Studio, that is) itself, and might not be specific to the Mea
surement Studio activex controls

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 4 of 4
(4,589 Views)