How to Import Namespace for a Class

joe_pool_is

Contributor
Joined
Jan 18, 2004
Messages
507
Location
Longview, TX [USA]
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
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.
 
Back
Top