//Keypress: private void myControl_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.a) { // call method? } } //Keydown: private void Grid1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.a) { //call method? } }
Console.WriteLine
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)