apparently the following in keyDown event fails to capture the alternate
key down
Private Sub cbAddressBar_Ke yDown(ByVal sender As System.Object, ByVal e As
System.Windows. Forms.KeyEventA rgs) Handles CBAdressBar.Key Down
If e.KeyCode = Keys.Alt Then ' does not work!!
bAltKeyDn = True
Return
End If
If e.KeyCode = Keys.ControlKey Then '' this works for control
key down
' some process logic for control key action...
End If
' other processing. action..
End Sub
What should I do instead?
key down
Private Sub cbAddressBar_Ke yDown(ByVal sender As System.Object, ByVal e As
System.Windows. Forms.KeyEventA rgs) Handles CBAdressBar.Key Down
If e.KeyCode = Keys.Alt Then ' does not work!!
bAltKeyDn = True
Return
End If
If e.KeyCode = Keys.ControlKey Then '' this works for control
key down
' some process logic for control key action...
End If
' other processing. action..
End Sub
What should I do instead?
Comment