Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclass User Control
Message
 
To
13/06/2008 09:54:19
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01323501
Message ID:
01324924
Views:
15
I want to create a tabbed UI. The controls that will appear on each tab should all be on a User Control which can then be added to the page at runtime.

It's amazing that a "superior" tool like VS requires you to jump through hoops to do so many simple things.





>>You have to do it in code???? UGH!
>
>Well, it depends on what you're sub-classing and what you want to do with it. If you have a UserControl class that you want to sub-class, you can do a lot of it visually if you need to. So, say you have this UserControl:
>
>
>public class MyBaseControl : System.Windows.Forms.UserControl
>{
>   // code in here
>}
>
>
>Now, to sub-class it, you start out by doing it in code: Add a new class to your project, make it of type UserControl, then go into the code and change it from this:
>
>
>public class MySubControl : System.Windows.Forms.UserControl
>
>
>to this:
>
>
>public class MySubControl : MyBaseControl
>
>
>At this point you can open your new sub-class up in the designer.
>
>~~Bonnie
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform