Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I need to change Form Icon during run-time. Where can I store icons? I don't want to keep them as separate files and ImageList stores them in Picture format that is incompatible with Icon format.
Posted

I am not sure how to use it. There is no samples in help. I tried

fm.Icon = System.Reflection.Assembly.GetManifestResourceStream("explorer.ico")

 

but it gives an error. Can you show me an example,please?

  • 4 months later...
Posted
Add them to your project, and mark their Build Action as "Embedded Resource".

Am I being a bit thick? I can't see how to do this. :confused: :confused:

TT

(*_*)

 

There are 10 types of people in this world;

those that understand binary and those that don't.

Posted (edited)

Sorry - I should've been clearer. How do I mark the Build Action as "Embedded Resource"?

 

 

 

Edit: DOH!!! I was definitely being a bit thick. Found it in the property window.

Edited by TechnoTone

TT

(*_*)

 

There are 10 types of people in this world;

those that understand binary and those that don't.

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...