How to Detecting Keypress While the form is Minimized ?

  • Thread starter Thread starter Mostafa Salaheldien
  • Start date Start date
M

Mostafa Salaheldien

Guest
hello everyone,

I would like to make my application listen for a key when the application is not focused

I'm using this code but it's working only when the form is focused

Private Sub Form1_KeyDown(sender As Object, e As KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = Keys.T AndAlso e.Control = True Then
Form2.show
End If
End Sub
thanks in advance

Continue reading...
 
Back
Top