Send Keys Click Event vb.net | KeyDown, KeyUp, KeyPress

This post contains the code to make other keys work when you kick the keys

Send Keys Click Event

When we press a key the following events occur. Information about three of which is given in this post.

  • Keydown
  • Keypress
  • Keyup

Key Down

Send Key

        If e.KeyCode = Keys.Enter Then
            e.SuppressKeyPress = True
            SendKeys.Send("{TAB}")
        End If

Send Keys Control + keys

       If e.KeyCode = Keys.Tab AndAlso e.Shift Then
            e.SuppressKeyPress = True
            SendKeys.Send("{+TAB}")
        End If

 

Leave a Comment