Reference to the Image class

Posted on 2004-11-01
Last Modified: 2010-04-23
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?

Question by:MIKEV
    LVL 8

    Accepted 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

    Author Comment

    It's always the obvious answer. :)  Thanks very much!
    LVL 8

    Expert Comment

    you're welcome!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    I'm currently working for a company where I have to upgrade over 50 VB6 programs to VB.NET 2008.  So far I'm about half way through, and I've learned quite a few tricks that drastically improve the performance of VB.NET apps. Because there are a…
    Introduction When many people think of the WebBrowser ( control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    877 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now