Jump to content

Adding new png into icons, but does not show up


Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...