if (e.KeyChar == (char)Keys.Space)
{
e.Handled = false;
MessageBox.Show("ERror!");
}



Solution: Set KeyPreview property to Ture

Labels:

0 Responses so far.