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
 
Norman
Thanks problem solved.

Bernard
Norman Yuan a écrit :
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top