By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,760 Members | 1,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,760 IT Pros & Developers. It's quick & easy.

In OnKeyDown how do I make the character ignored?

P: n/a


I believe in the KeyDown event if I set e.Handled = True the character is
ignored and none of the other keyboard events or overrides will be called.
Is that true?

If in OnKeyDown I want to do the equivalent of setting e.Handled = True in
the KeyDown event, how do I do that?
Thanks in advance for any info

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
If you do not delagate to MyBase.KeyDown(e) the key press will not be seen by
the base class and therefore ignored.

"**Developer**" wrote:


I believe in the KeyDown event if I set e.Handled = True the character is
ignored and none of the other keyboard events or overrides will be called.
Is that true?

If in OnKeyDown I want to do the equivalent of setting e.Handled = True in
the KeyDown event, how do I do that?
Thanks in advance for any info

Nov 21 '05 #2

P: n/a
thanks

"TrtnJohn" <Tr******@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
If you do not delagate to MyBase.KeyDown(e) the key press will not be seen
by
the base class and therefore ignored.

"**Developer**" wrote:


I believe in the KeyDown event if I set e.Handled = True the character is
ignored and none of the other keyboard events or overrides will be
called.
Is that true?

If in OnKeyDown I want to do the equivalent of setting e.Handled = True
in
the KeyDown event, how do I do that?
Thanks in advance for any info

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.