forcing to Not to process an event
Posted
by
BDotA
on Stack Overflow
See other posts from Stack Overflow
or by BDotA
Published on 2010-12-29T22:51:44Z
Indexed on
2010/12/29
22:54 UTC
Read the original article
Hit count: 137
C# WinApps: the main form has a key binding to CTRL-V ...so anywhere in the main app when I press CTRL-V something runs..good ... but also there are some MDI apps that are opening inside this main app ... in one of those there is a test box...ah! now CTRL-V also has a meanining for text box which is "Paste" ... so I added PreViewKeyDown to textbox and handled it, so now it is pasting BUT it is ALSO doing the main CTRL-V key binding that I had defined for the whole app ... but I do no want this to happen.... what can I do? ( I cannot change the key binding od the main app. I must keep it.)
© Stack Overflow or respective owner