Hot Key Control

Category:
Forms and Controls
Type:
Controls
Difficulty:
Advanced
Author:
Stefan

Version Compatibility: Visual Basic 5

More information:
This Control creates a Hotkey edit box exported by the MS CommonControl. It looks like a textbox, but if you press one of the the F keys, or Ctrl, or Shift, or Alt, you will see a textual representation of what you typed in the box. For instance, typing Ctrl and R at the same time will put Ctrl + R into the box.

The control, besides demonstrating some advanced API functionality, is possibly useful for defining hot keys. If you want to know how to install Hotkeys, see http://www.freevbcode.com/ShowCode.Asp?ID=987.

To see how the control works, open the .vbg project and place your cursor on the control that looks like a standard, enabled text box (this is actually a window drawn dynamically by the control). Then press one of the F keys along with Ctrl, Shift, or Alt


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download hotkeyctrl.zip