"Fred Nelson" <fr**@smartybird.com> wrote in message
news:ex**************@tk2msftngp13.phx.gbl...
Hi:
I have programmed in VB.NET for about a year and I'm in the process of
learing C#. I'm really stuck on this question - and I know it's a "newby"
question:
In VB.NET I have several routines that upload and process images. I can't
get past "square one" with images in C#:
This statement:
Image myImage;
results in an "ambigous reference" error.
I've searched MSDN and Google and I'm confused - I've tried
System.Drawing.Image and haven't had any luck!!!
I must have a namespace issue or something - any help would be GREATLY
apprecaited!
Thanks,
Fred
What type of application? When I try "Image myImage;" in a windows forms
app, I get no compiler error, but when I try to create an actual object with
"Image myImage = new Image();", I get "Cannot create an instance of the
abstract class System.Drawing.Image.". In this context, I'd need to
instantiate a subclass of Image, either Bitmap or Metafile.
I got your error message in a test web app, because there is an Image class
in each of the following places:
System.Drawing.Image myImage;
System.Web.UI.WebControls.Image myImage2;
Therefore, you have to specify which you want.
--
Peter [MVP Visual Developer]
Jack of all trades, master of none.