Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void textBox1_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.ControlKey)
- {
- //Do some work
- }
- }
- Private Sub textBox1_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs)
- If e.KeyCode = Keys.ControlKey Then
- 'Do some work'
- End If
- End Sub
Add Comment
Please, Sign In to add comment