D
Darren Green
I have a class project with an icon included and also a .resources file
which also includes an icon. I need the resource Id to allow the host to
extract the icon from the assembly, but cannot work out how to reference
the .resources icon.
For example the ico file in my project has a filename of MyIcon.ico, and
by using ildasm I cane get the resource Id quite easily. The manifest
includes -
..mresource public SQLDTS.MyIcon.ico
{
}
...where SQLDTS is my project namespace.
So I can use the resource id of "SQLDTS.MyIcon.ico" and it works a
treat.
However the .resources file also has an icon with the "name" of "MyIcon"
as set using ResEditor.exe, but looking in the manifest I can only see
this-
..mresource public SQLDTS.MyRes.resources
{
}
How do I reference the individual icon? I have tried various
incarnations of SQLDTS.MyRes.resources.MyIcon and such like without
luck.
How do I get resource Id?
I want the old style resource Id, they all used to be 101!
Cheers
which also includes an icon. I need the resource Id to allow the host to
extract the icon from the assembly, but cannot work out how to reference
the .resources icon.
For example the ico file in my project has a filename of MyIcon.ico, and
by using ildasm I cane get the resource Id quite easily. The manifest
includes -
..mresource public SQLDTS.MyIcon.ico
{
}
...where SQLDTS is my project namespace.
So I can use the resource id of "SQLDTS.MyIcon.ico" and it works a
treat.
However the .resources file also has an icon with the "name" of "MyIcon"
as set using ResEditor.exe, but looking in the manifest I can only see
this-
..mresource public SQLDTS.MyRes.resources
{
}
How do I reference the individual icon? I have tried various
incarnations of SQLDTS.MyRes.resources.MyIcon and such like without
luck.
How do I get resource Id?
I want the old style resource Id, they all used to be 101!
Cheers