usefulBee usefulBee - 9 months ago 58 Question

Visual Studio Class Icon Changes When Inheriting from WebClient

Once I change the class to inherit from WebClient, the file icon changes to the icon seen at the bottom of the screenshot. What does that icon reflect?

enter image description here


That's what happens when you inherit (directly or indirectly) from System.ComponentModel.Component. Sure enough, WebClient inherits from Component.

Try that: create a new file with a class, and then make the class inherit from Component. The icon will change at once.

So the icon designates a component, which often happen to have designers associated with them, but it's mostly some UI fanciness.