Namespace or Type cannot be found.

G

Guest

Please help. I have the following imports in my class file:
Imports System.Windows.Forms
Imports System.Drawing

But I get the following error message when I hover the mouse over the above.
"Namespace or Type 'Form' for imports 'System.Windows.Form' cannot be found.
I get the same message for the System.Drawing namespace also, Why can't it
find those namespaces? Thanks for any help.
Michael Lee
 
H

Herfried K. Wagner [MVP]

Michael said:
Imports System.Windows.Forms
Imports System.Drawing

But I get the following error message when I hover the mouse over the
above.
"Namespace or Type 'Form' for imports 'System.Windows.Form' cannot be
found.
I get the same message for the System.Drawing namespace also, Why can't it
find those namespaces?

Make sure your project contains references to "System.Windows.Forms.dll" and
"System.Drawing.dll".
 

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

Similar Threads


Top