Skip to content

Really basic

Tony

Asked Feb 27, 2006, 10:29 AM EST3 answers
Share
LinkedInX
I am new to C# and have been coding an application to learn the language, tools, etc. I have just begun working my way through printing with .NET and get an error message when I try to using the System.Drawing namespace:

The type or namespace name 'Drawing' does not exist in the class or namespace 'System' (are you missing an assembly reference?)

Here is the offending code - not much:

using System;
using System.Drawing;

I can access other System namespaces. I am confused.

thanks for any help,

tony

3 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    default inclusion of .net assemby references depends on the type of the project you are working on. if it is a windows form application, System.Drawing will be available to you
    0
  • 0

    >>(are you missing an assembly reference?)

    In that case, you must be missing the assembly reference to System.Drawing.dll. You can add the reference to the dll in visual studio by right clicking References icon in Solution Explorer, and selecting Add Reference... Just search the System.Drawing.dll, and click Ok. Now you are able to use the System.Drawing namespace.

    0
  • 0
    Thanks to all - this took care of it.

    tony
    0