I would like to perform a key event detection in textbox. The keys should be a combination of Ctrl+K, is there any best way to do it?
In KeyDown event of TextBox, use:
if (e.Control && e.KeyCode == Keys.K) {
//Your code here
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With