Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing - NEWBIE!!
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00885724
Message ID:
00885774
Views:
12
Hi Shawn,

You need to subclass .NET controls in code and not via the designer. Just create a new C# or VB.NET class and inherit from the control you want to inherit from. To use the control, you would add it to the toolbox and then drag it onto a form. Not as easy as FoxPro but you will get the same end result.

>Very newbie questions!!!!
>
>How do I subclass an element and then tell be able to select my element?
>
>
>I have subclasses in VFP before but it was a matter of copying the object to a new VCX and then edit the code.
>
>I will also want to re-use this class in other projects as well, not just the one that I am working on.....
>
>
>Thanks in Advance
>
>Shawn Dorion
>Geo Sektor Dot Com
>Website: http://www.geosektor.com
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform