Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C Sharp anyone?
Message
From
14/05/2001 13:22:49
 
 
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00506065
Message ID:
00506926
Views:
29
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform