I'm trying to allow a user to specify desired hotkeys, and all is well but this one problem: I'm not able to detect when UP arrow or DOWN arrow are pressed when using a button event (textbox events work fine). I think it has to do with the focus changing when these keys are pressed, and consequently not executing the KeyDown event.
Here's some example code:
private void richTextBox2_KeyDown(object sender, KeyEventArgs e)
if (e.KeyCode == Keys.Up || e.KeyCode == Keys.Down)
DOES NOT WORK:
public void button1_KeyDown(object sender, KeyEventArgs e)
if (e.KeyCode == Keys.Up)
Thanks for the time.