In VB6 I could quite easily have a MessageBox pop up to tell the user something. However, in .NET I find that I cannot apparently use MessageBox within a DLL class. Is there a workround of any kind?
I've tried this, but when I try to add the line "imports System.Windows.Forms" to my class I get an error "namespace or type specified does not contain any public member or can not be found". I'm still struggling here!
You will need to add System.Windows.Forms.dll to your Class Library's References before you can import it.
Right Click on References (under your Class Library project in Solution Explorer) and select Add Reference. Scroll to System.Windows.Forms.dll and then select it.
It's so good to know that there are people out there prepared to help a struggling newcomer to .NET
I'm sure that my questions must seem so obvious to you all, but I'm finding the change from old VB6 to .NET quite challenging.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.