Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C Sharp anyone?
Message
De
14/05/2001 13:22:49
 
 
À
12/05/2001 03:49:03
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00506065
Message ID:
00506926
Vues:
30
>Are you talking about removing an event handler defined using something like this?
>
>tvTree.AfterSelect += new System.WinForms.TreeViewEventHandler(this.tvTree_AfterSelect);
>
>If you are then unhooking the event handler can be accomplished by doing something like this.
>
>tvTree.AfterSelect -= new System.WinForms.TreeViewEventHandler(this.tvTree_AfterSelect);
>
Actually, we want to cancel a key press event. For instance we want to have a text box that will only receive numbers. When they press any other key, it does not get displayed. On the key down, we want to determine what key they pressed, and then cancel the event if it is non numeric.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform