Change Default Winform Icon Across Entire App

后端 未结 5 554
甜味超标
甜味超标 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:28

    If all your forms are in just one project then you can take the dll of the project and use reflection to get every type in the dll. If the type derives from Form you can set the type's Icon property to whatever you want. I am not sure what the performance overhead will be if the project is very big.

提交回复
热议问题