Patrick,
The KeyPress event doesn't handle the ALT key. Rather, you will have to
use the KeyDown and KeyUp events to handle that key.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Patrick De Ridder" <wa********@all.here> wrote in message
news:10***************@news-01.evisp.enertel.nl...
In order to block using the ALT butto,
I use
tb.KeyPress += etc
and
a function containing
if(e.KeyChar == (char)56)
e.Handled is true;
No syntax errors,
however, this isn't working.
Please comment.
Thank you,
Patrick.