Advertisement Jump to content


This topic is now archived and is closed to further replies.


WinForms Icon

This topic is 5829 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is driving me absolutely nuts! Mainly because it should be trivial... I''m trying to add my app icon to a simple WinForm. // - inside winform constructor Icon = new Icon( GetType(), "MyIcon.ico" ); I haven''t forgotten to make MyIcon.ico an embedded resouce. I''ve also checked the project properties to make sure I have the same namespace. It simply won''t load no matter what. Now here''s the interesting part. If I take an icon file from one of Petzold''s examples. Drop it in the project and set it up exactly the same as MyIcon.ico, it loads and works just fine. I must be doing something wrong, but I can''t seem to figure it out. Cheers.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!