Answer the question
In order to leave comments, you need to log in
How to disable all keys except letter and number keys?
How to block pressing certain keys in Windows forms, that is, the user presses trl or alt and the key does not
work
private void Form1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
e.SuppressKeyPress = true;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question