hi, i know how to register hotkey in vb.net but im having a problem when i want to use capslock to run may do while loop. i want to do is when i press my.NET - VB, C , F Server. The following example shows how to use the RegisterHotKey function with the MOD_NOREPEAT flag. Private Declare Function RegisterHotKey Lib user32 (ByVal hWnd As Long, ByVal id As Long, ByVal fsModifiers As Long, ByVal vk As Long) As Long Private Declare. I have a vb.net app constantly running in the background, with Vista. I want this app to do its thing when a certain hot key combination is pressed by the user. VB Signature: Public Declare Function RegisterHotKey Lib user32 Alias RegisterHotKey . RegisterHotKey((IntPtr)f.Handle, keyId, (uint)modifiers, (uint)k); A component to respond to a hotkey combination, system-wide.; Author: Duncan Edwards Jones; Updated: 18 Apr 2006; Section: VB.NET; Chapter: Languages; Updated: 18 Apr. vb.net winforms visual-studio-2013 hotkeys registerhotkey. asked Dec 12 '15 at 13:44. Tom Strong. 33 7. 1. vote. 0answers. newest registerhotkey questions feed 70. This code lets you create a 'hot key' for your application. the user can press a combination of keys (no matter which application they are using), and. Registering 3 hotkeys? Possible?. Handles MyBase.Load RegisterHotKey(Me.Handle, 100. (Visual Basic) Hotkeys-1. How do I register a hotkey in VB.NET?. You can then P/Invoke RegisterHotKey/ UnregisterHotKey APIs to register/ Unregister the hotkey..