Blocking the Alt button

  • Thread starter Thread starter Patrick De Ridder
  • Start date Start date
P

Patrick De Ridder

Hi,
Could someone please tell me how to block the Alt button from being used?
And how to unblock it again when exiting the application?
Many thanks,
Patrick
 
You can write a key event handler to "ignore" the ALT key.

Cheers,
Christian T. [MSFT]
Visual Studio Update Team

- Please do not reply to this email directly. This email is for newsgroup
purposes only.
=========================================================================
This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included script samples are subject to the terms specified
at http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which
they originated.
=========================================================================

--------------------
 
Hi Christian,

if(e.KeyChar == (char) 56)
e.Handled = true;

doesn't do the trick.

What is wrong?

Patrick.
 
Back
Top