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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top