Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclass and Reuse
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Subclass and Reuse
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP1
Database:
MS SQL Server
Divers
Thread ID:
00961677
Message ID:
00961677
Vues:
38
Hi,

I'm a long time foxpro programmer who's is pretty new to .NET.

What I'm attempting to do is to create a class library of user controls for re-use throughout my application.

I've managed to create the parent classes ok, and add them to my toolbox, drop it on a form and when I run it, it works fine...

However, I'm having a difficult time overriding method code at a instance level.

To put this in foxpro terms, say I had a classed command button that in it's click method did something really useful such as Msgbox("Parent Click")

Now what we used to do in foxpro is to drop this control on a form and then override it's click method so that the parent click is called and then perform some instance code eg

dodefault()
MsgBox("child click")

Is it possible to override a click event of a command button directly on the form, or do I have to store the subclassed version in a class library and then add that to the form?

Thanks in advance, Bernard...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform