e.Keycode not doing anything

This is my code at the moment.

 private void Form1_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Oemtilde) { MessageBox.Show("lol"); } } 

The issue is that no messagebox is displaying when I press the ` key.

I've tried changing the keys to F1 and other things. I've also changing it to Form1_KeyDown

by Dgameman1 via /r/csharp

Leave a Reply