Change Default Winform Icon Across Entire App

后端 未结 5 580
甜味超标
甜味超标 2020-12-17 16:32

Can I change the default icon used on a Winform?

Most of my forms have their icon property set to a custom icon. For the few forms that slip through the cracks, I d

5条回答
  •  不知归路
    2020-12-17 17:19

    The base class option is the one that we use.

    If you are looking for an alternative (not necessarily good ones), you could: 1. Use IOC to instantiate all of your forms and modify the IOC container to set the application icon. 2. Use AOP to insert code into all of the forms that sets the application icon.

    Personally, I'd just use the base class...

提交回复
热议问题