Pergunta

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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top