Detecting Key Press While Window is Not on the Top?

  • Thread starter Thread starter realDonaldTrump
  • Start date Start date
R

realDonaldTrump

Guest
Private Sub Form1_KeyDown(sender As Object, e As KeyEventArgs) Handles Me.KeyDown
If (e.KeyCode = 107) Then
MsgBox("Pressed")
End If
End Sub



I have these codes to detect a key press, however, if other forms are on top, this will not work. Is it possible to make it also work while not on top or minimized?

Continue reading...
 

Similar threads

Back
Top