Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to subclass control?
Message
From
08/04/2007 20:05:01
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01184867
Message ID:
01213331
Views:
14
>Mm.. So when you want to create your own Class Library of these classes that can be sub-classed visually, what do you use as a "base"? That is, it is not a Class Library but something else, right?

Right. If you're creating a MyBaseUserControl, you use "UserControl" as the base class. MyBaseForm uses WindowsForm. Just like you'd expect. etc.etc.etc.

>I admire that (living without cable or satellite). But I have to have cable tv or my kids would kill me <g>.

My kids haven't lived with me for a long time, so that's not an issue. When they come to visit, they love watching movies on our big-screen projection system.

~~Bonnie





>>>That is clear. I didn't realise the the forms, menus, etc. can be sub-classes visually. That's my next little "task".
>>
>>And when I say "sub-classed visually", I mean when creating your framework base classes to begin with.
>>
>
>Mm.. So when you want to create your own Class Library of these classes that can be sub-classed visually, what do you use as a "base"? That is, it is not a Class Library but something else, right?
>
>>
>>I don't watch TV ... we don't have cable out here in the boondocks and we don't have a satellite dish, so I guess I will miss it, but it doesn't bother me. <g> We only watch DVD movies ... a new movie every night ... NetFlix is the greatest invention since sliced bread! =0)
>>
>
>I admire that (living without cable or satellite). But I have to have cable tv or my kids would kill me <g>.
>
>Thank you.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform