System.Windows. Not valaible

  • Thread starter Thread starter =?ISO-8859-1?Q?Bernard_Bour=E9e?=
  • Start date Start date
?

=?ISO-8859-1?Q?Bernard_Bour=E9e?=

Hello

When I try to import the System.Windows.Forms.MessageBox
I get a meesage saying that it is not avalaible ?
How to solve it ?
Thanks

Bernard
 
Bernard,
When I try to import the System.Windows.Forms.MessageBox
I get a meesage saying that it is not avalaible ?
How to solve it ?

First of all, make sure you ahve a reference to the
System.Windows.Forms.dll assembly.


Mattias
 
Mattias Sjögren a écrit :
Bernard,




First of all, make sure you ahve a reference to the
System.Windows.Forms.dll assembly.


Mattias
Mattias

Yes I have the System.Windows.Forms in my references

Bernard
 
You "Import" namespace, not Class. MessageBox is a class in
System.Windows.Forms namespace.

So your *.vb file should look like:

Import System.Windows.Forms

Not:

Import System.Windows.Forms.MessageBox
 
Back
Top