Versions des environnements
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement