• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 169
  • Last Modified:

Reference to the Image class

I have a pile of data classes I've been moving to DLL's.  The output type for the project is Class Library.  One of these classes uses an Image type:

Dim ClientLogo as Image

When I take this to a new Class Library project, the class Image is not defined.  I assume it's an Imports I need so I do:

Imports System.

I would expect to do System.Drawing but it's not an option.  If I simply add System.Drawing in the project references, the Image class is still not available.  2 questions:

What do I have to Import to make the Image class available?
How do I know what to import for this or any other class/type? ie. How would I know to include System.Drawing?

  • 2
1 Solution
- Right click you project references
- Click add references...
- Search for system.drawing.dll
- double click it and press ok.

now you can Imports System.Drawing
MIKEVAuthor Commented:
It's always the obvious answer. :)  Thanks very much!
you're welcome!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now