Handler

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I create a handler for when the user presses the "Ctrl + B" Keys

Example

Private Sub Control_B Handles Ctrl+B ????
 
set the Form.KeyPreview property to True
then use KeyUp or KeyDown event and check if Ctrl+B is pressed
 
* =?Utf-8?B?Qm9i?= said:
How do I create a handler for when the user presses the "Ctrl + B" Keys?

Example:

Private Sub Control_B Handles Ctrl+B ????

Add a menu with a menu item, choose Ctrl+B as shortcut for the menu
item, set the menu to invisible and place the code in the menu item's
'Click' event handler.
 
Back
Top