AlanHong Posted August 27, 2007 Share Posted August 27, 2007 Hi, I am creating a new icon (png format) by creating in src\Resources\Icons and adding it into Icons project. After re-compile, the code below does not load it successfully: if (stream == null) { string fullName = ourNamespace + "." + fileName; stream = ourAssembly.GetManifestResourceStream(fullName); } I don't know how to make the png be created in src\Resources\obj\Debug with name prefix of PaintDotNet.Icons. I just copied and renamed my png there. But still not working. Can any one tell me what I should do? Thanks, Alan Quote Link to comment Share on other sites More sharing options...
AlanHong Posted August 27, 2007 Author Share Posted August 27, 2007 I have figured out how to fix the problem. In the image's property, I need to change the "Build Action:" to "Embeded resource" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.