usefulBee usefulBee - 7 months ago 27
Vb.net 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

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.