vendredi, décembre 16, 2005

i have put an Icon named "MyIcon" in my winform application ressources, by using the project proporty designer. Now i will put it in the form icon propoerty at the run time using code :

using System.Resources;
[...]

ResourceManager rm = new ResourceManager("MyNamespace", this.GetType().Assembly);
MyForm.Icon = (Icon)rm.GetObject("MyIcon");

1 commentaire:

Younes a dit…

Hey Ouadie! What's up?! I see ur blog is getting more and more interesting... Thanks for the info man! Always a pleasure on vacation :)