G
Guest
Hi,
In certain situations during the execution of my application I want to
disable certain keys from performing their normal functionality. I am trying
to do this by setting e->SuppressKeyPress to true in the KeyDown event, but
this appears to only suppress the KeyPress event (as it name suggests) and
not the KeyDown event.
The same seems to happen with e->Handled - ie. if I set e->Handled to true
in the KeyDown event the KeyUp event still fires.
I want to stop the KeyUp event firing (I have to use the KeyUp event as the
KeyPress event does not allow non-character keys to be captured). Does anyone
know any way to do this? Am I just being incredibly stupid?
Cheers,
Robin
In certain situations during the execution of my application I want to
disable certain keys from performing their normal functionality. I am trying
to do this by setting e->SuppressKeyPress to true in the KeyDown event, but
this appears to only suppress the KeyPress event (as it name suggests) and
not the KeyDown event.
The same seems to happen with e->Handled - ie. if I set e->Handled to true
in the KeyDown event the KeyUp event still fires.
I want to stop the KeyUp event firing (I have to use the KeyUp event as the
KeyPress event does not allow non-character keys to be captured). Does anyone
know any way to do this? Am I just being incredibly stupid?
Cheers,
Robin