Brondahl
Brondahl

Reputation: 8597

How to change the icon of a C# WinForms exe, in TaskManager

I've already set the icon in the Project Properties, and the FormControl Icon. I've thus got my icon (.ico file) in:

But I've still got the default icon in TaskManager:

enter image description here

How do I fix that, in my C# WinForm? (i.e. make the icon in the red circle look unique, like VS, Excel, Firefox, etc. all do)

(There are a few answers that appear to address this in C++, but nothing in C#-land, or WinForms.)

Upvotes: 0

Views: 1352

Answers (1)

Brondahl
Brondahl

Reputation: 8597

Dammit. It turns out the answer is "close and re-open TaskManager". It must have cached the icon.

Restarting the exe didn't help, but restarting TaskManager sorted it.

Upvotes: 3

Related Questions