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. GetThumbNailImageAbort

GetThumbNailImageAbort

Scheduled Pinned Locked Moved C#
helpgraphicsquestion
3 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.
  • N Offline
    N Offline
    Nick Seng
    wrote on last edited by
    #1

    I have two webforms in the same Project, and both have the lines

    System.Drawing.Image.GetThumbNailImageAbort myCallback;

    These two forms have the same using directives but the weird thing is, one form compiles fine, but the other barfs up the error:

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

    Is this a bug? Has anyone seen this before? Or am I just missing something?


    "if you vote me down, I shall become more powerful than you can possibly imagine" - Michael P. Butler.

    N 1 Reply Last reply
    0
    • N Nick Seng

      I have two webforms in the same Project, and both have the lines

      System.Drawing.Image.GetThumbNailImageAbort myCallback;

      These two forms have the same using directives but the weird thing is, one form compiles fine, but the other barfs up the error:

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

      Is this a bug? Has anyone seen this before? Or am I just missing something?


      "if you vote me down, I shall become more powerful than you can possibly imagine" - Michael P. Butler.

      N Offline
      N Offline
      Nick Parker
      wrote on last edited by
      #2

      Nick Seng wrote: Is this a bug? Has anyone seen this before? Or am I just missing something? You not only need to make sure your code uses a using statement to reference the assembly but you also have to make sure the compiler references the appropriate assembly as well. If you are using Visual Studio .NET you can simply add a reference to System.Drawing.dll, but if you are compiling using the command line compiler you will need to add it to the /reference switch. - Nick Parker
      My Blog | My Articles

      N 1 Reply Last reply
      0
      • N Nick Parker

        Nick Seng wrote: Is this a bug? Has anyone seen this before? Or am I just missing something? You not only need to make sure your code uses a using statement to reference the assembly but you also have to make sure the compiler references the appropriate assembly as well. If you are using Visual Studio .NET you can simply add a reference to System.Drawing.dll, but if you are compiling using the command line compiler you will need to add it to the /reference switch. - Nick Parker
        My Blog | My Articles

        N Offline
        N Offline
        Nick Seng
        wrote on last edited by
        #3

        Nope, the references are correct and I am using VS.NET. :(


        "if you vote me down, I shall become more powerful than you can possibly imagine" - Michael P. Butler.

        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