I am still learning c# and now i face a problem.
How do make my application do things on keyboard commands?
here is the code i currently use and it does nothing?
Code:private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.Control == true && e.KeyCode == Keys.I) { label1.Text = "Ctrl + I was pressed"; // Don't pass message to other controls e.Handled = true; } }




Reply With Quote