By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,620 Members | 1,512 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,620 IT Pros & Developers. It's quick & easy.

How to make your program look for keystrokes in background?

P: 225
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!")
Dec 4 '18 #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.