|
-
February 28th, 2011, 10:04 AM
#1
User Cotrol Inheratance
Okay I'm just wondering if this is even possible. I tried it and get an error but maybe I'm tring the wrong way. Can a usercontrol inherate an application defined class ie.. could you inhearate a classic rect class into a user control to add the hight and width properties to the control without haveing to do all the coding all over again? Currently I just declair a private instance of the class within the control and then encapsalate. It would be nice if I could just inherit all the functionality of my classes into controls designed to implament the classes.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|