Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. Private Sub Input_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Input.KeyDown
  2.  
  3. If e.KeyCode = Keys.Escape Then
  4.  
  5. e.SuppressKeyPress = True
  6. End If
  7.  
  8. If e.KeyCode = Keys.Enter Then
  9.  
  10. Send.PerformClick()
  11.  
  12. e.SuppressKeyPress = True
  13. End If
  14. End Sub
  15.  
  16. Private Sub ClientList_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ClientList.KeyPress
  17.  
  18. If e.KeyChar <> " " Then
  19.  
  20. Input.Select()
  21.  
  22. SendKeys.Send(e.KeyChar)
  23. End If
  24. End Sub
  25.  
  26. Call Input_KeyPress(sender, e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement