Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Subclass A Control
Message
De
02/04/2009 17:48:19
John Baird
Coatesville, Pennsylvanie, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01392835
Message ID:
01392881
Vues:
79
>>>>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform