C
Chris Calhoun
Here are the three event handlers I am trying to catch the key events, but
they do not work.
private void dgResults_KeyDown(object sender,
System.Windows.Forms.KeyEventArgs e) {
MessageBox.Show("Key Down!");
}
private void dgResults_KeyPress(object sender,
System.Windows.Forms.KeyPressEventArgs e) {
MessageBox.Show("Key Pressed!");
}
private void dgResults_KeyUp(object sender,
System.Windows.Forms.KeyEventArgs e) {
MessageBox.Show("Key Up!");
}
they do not work.
private void dgResults_KeyDown(object sender,
System.Windows.Forms.KeyEventArgs e) {
MessageBox.Show("Key Down!");
}
private void dgResults_KeyPress(object sender,
System.Windows.Forms.KeyPressEventArgs e) {
MessageBox.Show("Key Pressed!");
}
private void dgResults_KeyUp(object sender,
System.Windows.Forms.KeyEventArgs e) {
MessageBox.Show("Key Up!");
}