Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

In VB2005, I am trying to import a namespace into a Class I am building.

 

The Class uses the Screen class found in System.Windows.Forms, but whenever I go up to my empty class to include the code

Import System.Windows.Forms

I get that the namespace can not be found.

 

I don't make stand alone classes very often, so what have I done wrong?

 

Typically, I'd have a class as part of a project that includes a form, but this is something I'll use over and over - so I want it to be a separate module that I can load as needed.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...