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
質問
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?
解決
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