Inheriting from common controls?

philprice

Centurion
Joined
Mar 21, 2003
Messages
116
Location
Hull, UK
Is this possible? If so how.. I want to create a treeview that has a few extra methods, specific to my project. I want to make a method that accepts a collection to add to the tree because ive got to do the same thing over multiple architectures (.NET win32 / PocketPC, WinCE, Embedded tools)..
 
In our project, for example, we have all standard input controls in an "extended" version (implementing an interface IExtended) just inheriting from the original class. (Textbox e.g.)

You can place these inherited controls on your forms/usercontrols like any other control (must be added to the toolbox beforehand, though).
 
Back
Top