Hi,
I would like to get icon from external assembly resource library. I read couple of articles that I can use the following code to enumerate resources.
foreach(string resource in target.GetManifestResourceNames()) {
string ext = Path.GetExtension(resource).ToLower();
if (ext == ".bmp" ||
ext == ".gif" ||
ext == ".jpg" ||
ext == ".jpeg")
{
}
However, whan I try these code, the ext condition would never pass. It is because GetManifestResourceNames() return string array that contains resource name as below
myApp.MyModule.MyForm1.resource
myApp.MyModule.MyForm2.resource
Any ideas?
Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...