Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 283
  • Last Modified:

using system.drawing does not load

I am very new to C# and am having a problem with using Graphics...  I am creating a component for a traffic light, and can not using Graphics because I cannot load System.Drawing. When I type in using system.
the drawing option does not appear... what am I doing wrong?
0
brassmon
Asked:
brassmon
  • 3
1 Solution
 
surajgupthaCommented:
Make sure you are typing using above the namespace tag?

using System.Drawing;

namespace EE.Questions.C#
{
}

Which project are you trying to type using in? web /windows/ services ??
0
 
brassmonAuthor Commented:
I am typing above the namespace.. and all of the other namespaces are working fine...

I'm not sure what you mean by your question.. I'm writing a windows program..

when I type using system.    why would drawing not show up in the list of choices?
0
 
surajgupthaCommented:
Try adding System.Drawing into the references
0
 
surajgupthaCommented:
right click ur project-> add reference -> choose .net -> look for system.drawing
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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