Question

I have a main form in a visual studio 2010 application which has a logo as an icon. I have built multiple other forms that are opened on button click events...etc. Is there a way for all my subforms to inherit the logo of the main form or do I just manually assign it in each form?

Was it helpful?

Solution

You could create a BaseForm class, directly derived from System.Windows.Forms.Form, set its Icon property, and then derive all your other forms from this one.

Cheers

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top