Yes, SetWindowsHookEx is the way to go... I posted an example here:

http://www.vbforums.com/showthread.p...tWindowsHookEx

that disables the keyboard but if you take a close look you'll see that's easy to adjust to your requirements.. if you need more help let me know