How to make your program look for keystrokes in background?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anoble1
    New Member
    • Jul 2008
    • 246

    How to make your program look for keystrokes in background?

    Hi,
    I have simple program i made where if you press the Alt key you get a messagebox. Is there anyway to have this program always running in background and if you hit the Alt key you will get a message? Can you tell it to always be looking?
    Code:
    Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
    If (e.KeyCode) = Keys.Menu Then MsgBox("Please Logout of PFW!")
Working...