hello! how are you all??
I built a dll in c#, and I want it to show a message box...
I can't seem to do it...
can anyone help?
thanks!!
:wave:
Printable View
hello! how are you all??
I built a dll in c#, and I want it to show a message box...
I can't seem to do it...
can anyone help?
thanks!!
:wave:
Did you import the namespace System.Windows.Forms?
Did you add a reference to the System.Windows.Forms assembly, which needs to be done before you can import any namespace it contains. The Windows Control Library project type has the reference and import by default, just like the Windows Application project. If you've created a Class Library project then you'll have to add them manually. There's no reason to believe that a Class Library is going to be used by a Windows Application so there is no specific reason to reference that assembly by default. A Cclass Library may just as easily be used by a Web Application or a Console Application.
Wow thats great to know :thumb:
For some reason I am unable to add reference to System.Windows.Forms
It is simply not recognised by C# express.
Anyone knows why is that?
thanks
Right click your project in the Solution Explorer and select Add Reference. On the .NET tab scroll down to System.Windows.Forms and double-click it. Done. From there you would still have to fully qualify every type from System.Windows.Forms namespace unless you add a 'using' statement to each file:Code:using System.Windows.Forms;