Hello. I've created a new Project (Visual C# - Measurement Studio - NI Class Library). In that Project, I have a Class with...
using NationalInstruments; using NationalInstruments.UI; using NationalInstruments.UI.WindowsForms;
...and I'd like to replace the reference to WindowsForms with a reference to WebForms. However, when I do so and try to build, I get, "The type or namespace name 'WebForms' does not exist in the namespace 'NationalInstruments.UI'". When I try to add a Reference to NationalInstruments.UI.WebForms in my Solution Explorer, there's no obvious Component Name to add...
...I'm expecting to see one called "National Instruments Web Forms Controls".
The WebForms controls only show up in the toolbox for a web based (ASP.NET) project like a new website. Go to File>>New>>WebSite in VS. As far as the NI Class Library not working, it works for me. However, when you create a NI Class Library using our wizard the wizard adds using statements to your project. If you remove WindowsForms assembly and add the WebForms assembly you will get a compile error for the statement:
Just remove that statement and everything builds fine.
> If you remove WindowsForms assembly and add the WebForms assembly
That's my point: the WebForms assembly does not appear in the "Add Reference" dialog for me (SEE image). What, specifically, do I need to do to add the WebForms assembly to my Visual C# - Measurement Studio - NI Class Library Project?
Based on the fact that that folder contains "NationalInstruments.UI.WindowsForms.dll" I assume I'm looking for "NationalInstruments.UI.WebForms.dll". That .dll is not found anywhere on my hard drive. Please advise.