Greetings.
While trying to get a simple app working, I've been forced to delve into
embedded and/or linked resources a bit. I read all the reference for the
System.Resources namespace as well as all the material within the
"Resources and Localization..." tutorial. While I'm confident I now know
completely how to accomplish my original, simple task of embedding some
icons into my assembly and use of the same at runtime, I realize I've a
few unanswered questions on this topic.
Somehow, the docs for the System.Drawing.Icon class convinced me that I
should be able to very quickly extract an icon from a resource within my
assembly by merely using one of the classes overloaded constructors.
Specifically, the constructor taking two arguments: Icon(Type type,
string resource). According to the docs, this creates an instance from a
resource with the name specified by the string argument that is
contained within the assembly that contains the type specified by the
Type parameter.
After playing around a bit with how I *thought* this was supposed to
work I realize I just have no idea what I'm doing here. So, can anyone
give me some illumination or example as to how this Icon constructor is
intended to be used?
Thanks to anyone who chooses to humor me.
--
Kendall Gifford
========================================
WEB: http://kendall.jedis.com/
EMAIL: [REPLY TO NEWSGROUP PLEASE]
========================================