Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Subclass A Control
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01392835
Message ID:
01393383
Views:
71
>>>>>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 can't do it visually. You are left to guess where and how to place additional objects.

Guess you are out of luck.

The other alternative is to design your class visually on a form, then after building, open the hidden files and check the source, then copy and paste into a new class. At least that way you don't have to guess what and where to code the layout, colours etc..

And the product is called Visual Studio and everything is class based - what a joke.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform