M
Mats-Lennart Hansson
Hi,
I want to create a resource file with 2 icons and then use them in a c#
project. First I create the resx file with reseditor.exe. After that I add
the resx-file into my project and then I try to get the icon by using the
code:
Assembly a = Assembly.GetExecutingAssembly();
ResourceManager rm = new ResourceManager("Resource1", a);
Icon i = (Icon) rm.GetObject("Running");
However, this does not work. I get an error saying something about a
manifest and that I must make sure that all files were added correctly.
Can anyone give me a step by step explanation on how I should do it?
Thanks,
Mats-Lennart
I want to create a resource file with 2 icons and then use them in a c#
project. First I create the resx file with reseditor.exe. After that I add
the resx-file into my project and then I try to get the icon by using the
code:
Assembly a = Assembly.GetExecutingAssembly();
ResourceManager rm = new ResourceManager("Resource1", a);
Icon i = (Icon) rm.GetObject("Running");
However, this does not work. I get an error saying something about a
manifest and that I must make sure that all files were added correctly.
Can anyone give me a step by step explanation on how I should do it?
Thanks,
Mats-Lennart