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:
This Doesnt:Code:nIcon.Icon = new Icon(GetType(),"custom.ico");
Code:pBox.Image = new Image(GetType(),"custom.bmp"); /* Cannot create an instance of the abstract class or interface 'System.Drawing.Image' */





Reply With Quote