423,846 Members | 1,959 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,846 IT Pros & Developers. It's quick & easy.

How to make your program look for keystrokes in background?

anoble1
100+
P: 216
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?
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
  2. If (e.KeyCode) = Keys.Menu Then MsgBox("Please Logout of PFW!")
  3.  
1 Week Ago #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.