B
Banaticus
I know how to do a CommandButton_Click() event and I have a
CommandButton_KeyDown() event which checks to see if Ctrl was held down:
Private Sub Note_Toggle_KeyDown(KeyCode As Integer, Shift As Integer)
If (Shift And acCtrlMask) > 0 Then
Call TheLocker("[Notes Subform]", "[Note Toggle]", "[Text_EditNotes]")
End If
End Sub
The problem is that the Click and the KeyDown are seperate. Currently, the
KeyDown event fires after clicking on the object to give it focus then
pressing Ctrl once. If the user presses Ctrl and holds it down while
clicking the mouse button, then the two events appear to be connected. But
I'm sure that somewhere along the line, my expectations of what the user is
going to do and what actually happens will not be the same. So, I want to
have something happen when the user holds down Ctrl and then clicks the mouse
button on a command button while holding the Ctrl button down.
I'm looking for some sort of Button_ClickKeyDown().
CommandButton_KeyDown() event which checks to see if Ctrl was held down:
Private Sub Note_Toggle_KeyDown(KeyCode As Integer, Shift As Integer)
If (Shift And acCtrlMask) > 0 Then
Call TheLocker("[Notes Subform]", "[Note Toggle]", "[Text_EditNotes]")
End If
End Sub
The problem is that the Click and the KeyDown are seperate. Currently, the
KeyDown event fires after clicking on the object to give it focus then
pressing Ctrl once. If the user presses Ctrl and holds it down while
clicking the mouse button, then the two events appear to be connected. But
I'm sure that somewhere along the line, my expectations of what the user is
going to do and what actually happens will not be the same. So, I want to
have something happen when the user holds down Ctrl and then clicks the mouse
button on a command button while holding the Ctrl button down.
I'm looking for some sort of Button_ClickKeyDown().