Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. "using " confuse me

"using " confuse me

Scheduled Pinned Locked Moved C#
graphicsquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    ZBUILDER
    wrote on last edited by
    #1

    I am developing an assambly .It is not a user control,but i want use System.Drawing.Color class. How should i do ?

    waiting for answer.
    thanks

    SIMPLE IS BEAUTY

    J 1 Reply Last reply
    0
    • Z ZBUILDER

      I am developing an assambly .It is not a user control,but i want use System.Drawing.Color class. How should i do ?

      waiting for answer.
      thanks

      SIMPLE IS BEAUTY

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      Add a reference to the System.Drawing.dll assembly. The using statement (as it applies to namespaces and classes) just makes it so you don't have to type as much, it doesn't do anything to the actual code that is output. To actually use a new assembly you need to add a reference to it (in VS.NET right click on your project and choose Add Reference...on the commandline use the /ref:<assemblyname.dll> compiler switch). James "It is self repeating, of unknown pattern" Data - Star Trek: The Next Generation

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups