views:

442

answers:

1

I would like to perform key event detection in textbox. The key should combination of Ctrl+K, is there any best way to do it?

+3  A: 

In KeyDown event of TextBox, use:

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