<SteveBeh...@discussions.microsoft.comwrote:
Pavel, I am very sorry about my previous post -- the problem actuallyFor KeyDown, you can allow it to process the event normally by setting
occurred in *nearby code . * That is the answer to question 1, however it
leads me to a fourth question;
How can I get the system to complete the "normal" *processing of the *
(possibly modified) keystroke?
Handled and SuppressKeyPress properties of KeyEventArgs to false (or
not touching those properties in the first place, since their default
value is false). You cannot rewrite keycodes in KeyDown event handler,
though.
In KeyPress event handler, you can modify input characters simply by
changing the value of KeyPressEventArgs.KeyChar property. Again,
unless you set Handled to true, the default processing will take place
after your event handler returns, and the modified character value
will be used (e.g. inserted into the text in case of TextBox).