inheritence in c#
- by scatman
i am trying to create a custom (TreeView) control by inheriting from (RadTreeView) control by doing so:
public class CustTreeView : RadTreeView
but not all methods where inherited!!. for example:
i can do:
RadTreeView r = new RadTreeView();
r.LoadContentFile("Sample.xml");
but not:
CustTreeView r = new CustTreeView ();
r.LoadContentFile("Sample.xml");
so LoadContentFile is a method in RadTreeView but not in CustTreeView!!any explanation?