471,605 Members | 1,607 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

skip original event handler.

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!

Jan 2 '06 #1
2 1900
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jayson" <sc*****@hartapack.com> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
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!

Jan 2 '06 #2
"Jayson" <sc*****@hartapack.com> a écrit dans le message de news:
11*********************@g44g2000cwa.googlegroups.c om...

| 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

--
Joanna Carter [TeamB]
Consultant Software Engineer
Jan 2 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.