skip original event handler.

  • Thread starter Thread starter Jayson
  • Start date Start date
J

Jayson

Hi guys,

I am using a control(I only got the dll file) downloaded from web.
Whenever a key is enter it will validate the user input. If not valid
it will ignore the key being enter. I want to skip that validation
handler. How do I do that?
Thank you!
 
Jayson,

Unless the control offers a method or property you can set to change
this behavior, you can't do anything about it. Only a control itself has
access to the events, and only it can fire them or skip them.

Hope this helps.
 
"Jayson" <[email protected]> a écrit dans le message de (e-mail address removed)...

| I am using a control(I only got the dll file) downloaded from web.
| Whenever a key is enter it will validate the user input. If not valid
| it will ignore the key being enter. I want to skip that validation
| handler. How do I do that?

It is meant to be a common design practice to have an event like Click fired
by a method like OnClick. The OnClick method could well be virtual and
therefore, overriding this method could allow you to prevent the event being
called by making the override an empty method.

Look for a method on the control called On(WhateverTheEvent).

Joanna
 
Back
Top