BeforeRemove Event
Description
Occurs when a shortcut key binding is removed from a command using the command bars customization dialog.
Syntax
Public Event BeforeRemove( _
ByVal [fVirt] As Long, _
ByVal [Key] As Long, _
ByVal [Command] As Long, _
ByRef [Cancel] As Variant _
)
Parameters
-
fVirt
Specifies whether the Control, Shift, and Alt keys are used for the key binding. -
Key
The ASCII key for the key binding. -
Command
The command ID which will be invoked when the accelerator is used. -
Cancel [out]
Set to True to cancel the shortcut from being removed.
Remarks
The BeforeRemove event occurs when a user removes a key binding/shortcut from a command using the KeyboardPage of the command bars customization dialog. BeforeRemove occurs after the user removes the key binding but before it is actually removed from the command. This gives you the opportunity to modify or cancel the operation.
See Also
- KeyBindings Collection
- Add Method
- DeleteAll Method
- BeforeAdd Event
- BeforeTranslate Event
- ShowKeyboardPage Property
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.