How to use resource file (like a icon file, icon1.ico) in C# codes?

  • Thread starter Thread starter Brian
  • Start date Start date
Hi Brian,

You need to put the icon file inside a resource file.
Use for instance a ResourceWriter to create that file.
Once a resource, build your program using /resource:<resource file> or /linkresource:<>.

For you program icon (seen in explorer etc) you need to compile with /win32icon:<icon.ico>
 
Thank you.

Morten Wennevik said:
Hi Brian,

You need to put the icon file inside a resource file.
Use for instance a ResourceWriter to create that file.
Once a resource, build your program using /resource:<resource file> or
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top