المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : why inherit from Component?



C# Programming
01-11-2010, 03:10 PM
I am studying a TreeView implementation.

The TreeView uses classes which encapsulate certain controls such as textbox, checkbox etc.

Each item class inherits from Component (not Control).



Generally speaking, why would you inherit from Component like this?