how to extract icon from my exe  
Author Message
mcnamaragio





PostPosted: Visual C# General, how to extract icon from my exe Top

Let's say I have written a program and it has got an icon embedded in it as a resource. I would like to extract this icon from this exe and create it on the computer every time it runs. So my exe has to create new icon and use an icon from its resource as the source of this icon. How can I do Icon was just an example, I'm interesting in extracting any file which is embedded in the resource. Thanks


Visual C#12  
 
 
ahmedilyas





PostPosted: Visual C# General, how to extract icon from my exe Top

you can extract files from an embedded resource:

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=885322&SiteID=1

http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=863714&SiteID=1

and do whatever you want with the extracted file which is in the Stream object. Does this give you a head start