njsokalski
Well-known member
- Joined
- Mar 16, 2011
- Messages
- 102
- Programming Experience
- 5-10
I want to create a control from UserControl, and then have another class or control inherit that. Basically, I want the following:
Public Class MyBaseClass : Inherits UserControl
Public Class MyControl : Inherits MyBaseClass
I am having trouble doing this, but I am not sure what I am missing. In the codebehind for MyControl, I inherit MyBaseClass, but then I receive an error in the *.g.i.vb that says the base class cannot be different. What can I do to fix this? Basically, I just want to create controls that use multiple levels of inheritance. Any help would be appreciated. Thanks.
Public Class MyBaseClass : Inherits UserControl
Public Class MyControl : Inherits MyBaseClass
I am having trouble doing this, but I am not sure what I am missing. In the codebehind for MyControl, I inherit MyBaseClass, but then I receive an error in the *.g.i.vb that says the base class cannot be different. What can I do to fix this? Basically, I just want to create controls that use multiple levels of inheritance. Any help would be appreciated. Thanks.