« TAPI & Serial Com, Threading, Random Reverse Engineering Notes | Main | ToolBar button image tricks »

Embedded Resources, ImageLists

Discovered that images added to a project can have their build property set to “Embedded Resource”.

You can then get at them programmatically by:

Image.FromStream(Assembly.GetExecutingAssembly().GetManifestResourceStream("SharksEye.VisionVest.Resources.image_medium.ico"));

 

And then I learned that images added to an ImageList using the Visual Studio IDE are converted to embeded resources.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)