I have developed a .dll to display a form that controls a simple routine.
Oddly, you can't use
messagebox.show
unless you do one of two things:
either use an imports system.windows.forms
or
system.windows.forms.messagebox.show etc

Now this is strange, because the form inherits as below:
Inherits System.Windows.Forms.Form

Why is this and what other problems may I expect to encounter?

Thanks for any advice.

Bernie Yaeger

Re: Using a .dll to display a form by hirf-spam-me-here

hirf-spam-me-here
Wed Jan 07 03:20:37 CST 2004

* "Bernie Yaeger" <berniey@cherwellinc.com> scripsit:
> I have developed a .dll to display a form that controls a simple routine.
> Oddly, you can't use
> messagebox.show
> unless you do one of two things:
> either use an imports system.windows.forms
> or
> system.windows.forms.messagebox.show etc
>
> Now this is strange, because the form inherits as below:
> Inherits System.Windows.Forms.Form
>
> Why is this and what other problems may I expect to encounter?

In the project properties, you can create a project import for
'System.Windows.Forms'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>