usefulBee usefulBee - 2 years ago 114 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

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download