Hello,
To show a MessageBox or a Form from a class library you will need to add a
reference to System.Windows.Forms. The MessageBox is in the
System.Windows.Forms namespace. If you are using it from a class you will
need to use/import the name space or write it out completely like
System.Windows.Forms.MessageBox.Show("Hello World");
In your main application you will need to add a reference to the class
library.
Hope that helps,
Tom Krueger
Smart Client DevCenter - http://msdn.microsoft.com/smartclient/
Mobile DevCenter - http://msdn.microsoft.com/mobility
This posting is provided "as is" with no warranties and confers no rights.
> Hi
> I am just beginning learning Dot Net, though I am a fairly experienced VB6
[quoted text clipped - 11 lines]
>
> Roger Stenson
Roger Stenson - 03 Dec 2004 20:37 GMT
Hi Tom
Thanks enormously for your help with my beginners problems.
I imagined MessageBox came from System.Windows.Forms.Form as I don't recall
importing System.Windows.Forms as well as inheriting the 'form' when
developing an ordinary forms application.
Anyway you have solved the problem and thanks
Roger Stenson
> Hello,
>
[quoted text clipped - 31 lines]
>>
>> Roger Stenson