Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Subclass A Control
Message
From
02/04/2009 17:48:19
John Baird
Coatesville, Pennsylvania, United States
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01392835
Message ID:
01392881
Views:
80
>>>>>I have installed these controls http://www.componentfactory.com/free-windows-forms-controls.php
>>>>>
>>>>>They appear in the toolbox. How do I subclass the KryptonHeaderGroupControl? I would like to create a base level control based on it, then subclass it some more, but I don't know how to make a subclass.
>>>>
>>>>
>>>>
>>>>   using KryptonHeaderGroup...
>>>>
>>>>   public class MyKryptonControl : KryptonHeaderGroupControl
>>>>   {
>>>>      public MyKryptonControl ()
>>>>      {
>>>>      }
>>>>   }
>>>>
>>>
>>>
>>>Actually, I created a UserControl, dropped the group on it, and there it is.
>>
>>You're not really creating a subclass then.
>
>So how do you visually subclass a control then?

You don't. Its all done in code. .Net doesn't participate in Visual Inheritance except for one small instance (inherited forms) but not in anything else. You've created an instance of the group, not a subclass of it.
Previous
Reply
Map
View

Click here to load this message in the networking platform