inheritence in c#

Posted by scatman on Stack Overflow See other posts from Stack Overflow or by scatman
Published on 2010-05-18T09:18:12Z Indexed on 2010/05/18 9:20 UTC
Read the original article Hit count: 168

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about c#

Related posts about inheritance