M
MRM256
Guest
Hello,
I want to do a Keyboard combination to activate a Button on the Main Form. I have googled the question "How to make Keyboard combinations" and this example keeps popping up.
Private Sub FrmMain_KeyDown(sender As Object, e As KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = Keys.Alt And e.Control = True Then
'frmSearch.Show()
MsgBox(vbInformation & "Ctrl + Alt combination")
End If
End Sub
If I understand this right if I press the Control and Alt button together the message shows. However, this isn't the case.
How come this isn't working?
MRM256
Continue reading...
I want to do a Keyboard combination to activate a Button on the Main Form. I have googled the question "How to make Keyboard combinations" and this example keeps popping up.
Private Sub FrmMain_KeyDown(sender As Object, e As KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = Keys.Alt And e.Control = True Then
'frmSearch.Show()
MsgBox(vbInformation & "Ctrl + Alt combination")
End If
End Sub
If I understand this right if I press the Control and Alt button together the message shows. However, this isn't the case.
How come this isn't working?
MRM256
Continue reading...