Alex Rivera | Logout

Change Default Winform Icon Across Entire App

Asked 2009-08-05T14:46:38.647
13

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 don't want the generic "hey look, he made this in visual studio" icon.

One solution is to tediously check every one of my forms to make sure they either have a custom icon set or have ShowIcon set to False.

Another solution is to have every one of my forms inherit from a base class that sets a custom icon in the constructor.

Aside from those solutions, what other options do I have?

EDIT: I was hoping there would be a way to replace the source of the stock icon with my own. Is it in a resource file somewhere? Or is it embedded in a .NET dll that I can't (or really, really shouldn't) modify?

BOUNTY EDIT: Is there a way to accomplish this without editing or writing a single line of code? I don't care how impractical, complicated, waste-of-time the solution is... I just want to know if it's possible. I need to satisfy my curiosity.

Edit
Report

1 Answer

2

My useful answer:

No

Would be a nice feature for microsoft to implement though, since most apps use the same icon across the entire application.

answered 2009-10-01T20:15:02.130

Your Answer