System.Windows.Forms

J

John Espinosa

I am trying to use a message box in a console application. But when I import system.windows.forms in the top line I get an error:

Namespace or type 'Forms' for the Imports 'System.Windows.Forms' cannot be found.

Windows applications seem to run fine. I dont have any other errors with VS 2003.

HELP!!!

TIA
 
H

Herfried K. Wagner [MVP]

* "John Espinosa said:
I am trying to use a message box in a console application. But when I import system.windows.forms in the top line I get an error:

Namespace or type 'Forms' for the Imports 'System.Windows.Forms' cannot be found.

Windows applications seem to run fine. I dont have any other errors with VS 2003.

Add a reference to "System.Windows.Forms.dll" (select the "References"
folder in the project explorer and add "Add reference..." from its
context menu).
 

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

Top