문제

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