C# 检测组合键事件

C# 检测组合键事件,c#,winforms,events,keyboard,C#,Winforms,Events,Keyboard,我想在textbox中执行关键事件检测。按键应该是Ctrl+K的组合,有没有最好的方法呢?在文本框的按键事件中,使用: if (e.Control && e.KeyCode == Keys.K) { //Your code here }

我想在textbox中执行关键事件检测。按键应该是Ctrl+K的组合,有没有最好的方法呢?

在文本框的按键事件中,使用:

  if (e.Control && e.KeyCode == Keys.K) {
  //Your code here
  }