I am trying to catch F5 on System.Windows.Forms for what I wrote:
partial class MainForm { (...) this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.MainForm_KeyUp); (...) } public partial class MainForm : Form { (...) private void MainForm_KeyUp(object sender, KeyEventArgs e) { Log("MainForm_KeyUp"); if (e.KeyCode == Keys.F5) { RefreshStuff(); } } }
But my event tracking does not work.
Do you know how to cactch EventKey on System.Windows.Forms ?
source share