The problem I am currently having is the ability to display a logo on said form. Normally, images are displayed using:
Expand|Select|Wrap|Line Numbers
- pictureBox1.Image = global::<projectname>.Properties.Resources.<resourcename>
I have a method of getting the application (namespace) name using:
Expand|Select|Wrap|Line Numbers
- System.Reflection.AssemblyName assemblyName = System.Reflection.Assembly.GetExecutingAssembly().GetName();
So basically, I want to be able to stick my class into any project I am working on and have it access the current project's resources and set an image accordingly. This means, I don't want project names hard-coded.
Is this even possible? If so, could someone please shed some light on how it can be done?
Thanks.