WinForms: How to prevent textbox from opening alt menu?
Posted
by Digiku
on Stack Overflow
See other posts from Stack Overflow
or by Digiku
Published on 2010-04-17T22:49:57Z
Indexed on
2010/04/17
22:53 UTC
Read the original article
Hit count: 282
I have this textbox I use to capture keyboard shortcuts for a preferences config. I use a low-level keyboard hook to capture keys and also prevent them from taking action, e.g. the Windows key, but the Alt key still comes through and makes my textbox lose focus.
How can I block the Alt key, so the focus is kept unaltered at my textbox?
© Stack Overflow or respective owner