Catch a user pressing Alt-K
- From: Phillip Taylor <Phillip.Ross.Taylor@xxxxxxxxx>
- Date: Wed, 29 Aug 2007 05:40:02 -0700
which is a text box and icon inside a panel. I want to detect when aFrom a previous post you guys may be aware I'm writing a component
user presses Alt+K together so I can throw up a dialog.
It's basically identical to how the Alt-K feature works in the To and
CC fields of Microsoft Outlook. I was going to use this code to detect
the event:
Private Sub completerCatcher(ByVal sender As Object, ByVal e As
KeyPressEventArgs)
If (Char.ToLower(e.KeyChar) = "k" And
My.Computer.Keyboard.AltKeyDown) Then
activatePicker(Nothing, Nothing)
End If
End Sub
Now I'd imagine this would work, only it doesn't fire when the user
presses Alt+K. I imagine it's handled by the parent form. Since my
component is used on multiple dialogs (and sometimes many times per
single dialog) I need to know how I can catch these events.
Does anybody know?
.
- Follow-Ups:
- Re: Catch a user pressing Alt-K
- From: Phillip Taylor
- Re: Catch a user pressing Alt-K
- Prev by Date: Re: Tracking change of control variable.
- Next by Date: Re: Catch a user pressing Alt-K
- Previous by thread: Tracking change of control variable.
- Next by thread: Re: Catch a user pressing Alt-K
- Index(es):
Relevant Pages
|