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