-
Use an Embedded Image?
I want to embed some images into my application, but i dont know how to use them? I want to fill a picturebox control with an imbedded image, but i cant figure it out. I can do this with no problem using icons, if i try to use the same code with an image i get an error.
This Works:
Code:
nIcon.Icon = new Icon(GetType(),"custom.ico");
This Doesnt:
Code:
pBox.Image = new Image(GetType(),"custom.bmp");
/*
Cannot create an instance of the abstract class or interface 'System.Drawing.Image'
*/
-
image is an abstract class so u cant create instances off it..try using bitmap