View Single Post
  #4 (permalink)  
Old 28-Jul-2006, 08:09 AM
Pieter Wijnen's Avatar Pieter Wijnen
Guest
 
Posts: n/a
   
   
Re: How do I detect a Ctrl-E keystroke?

there's an unique integer value associated with the key-combo (keycode ,
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10079-how-do-i-detect-ctrl-e.html
shift)
69, 0 (normal e)
69,2 (ctrl+e)

hth

Pieter

code sample

Private Sub Text0_KeyDown(KeyCode As Integer, Shift As Integer)
Debug.Print KeyCode, Shift
End Sub



"Nathan" wrote in message
news:EE78963E-2B55-4526-9522-1CC1061F164B@microsoft.com...
> That part I understand, but how do I determine that the control key is
> down
> too? The user could press E during normal operation within this field and
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10079
> I
> only want the dialog triggered on Ctrl-E.
>
> Thanks
>
> Nathan
>
> "Pieter Wijnen" wrote:
>
>> use the Form's KeyDown Event (set KeyPreview to Yes) - or - the Control's
>> KeyDown Event
>>
>> HTH
>>
>> Pieter
>>
>> "Nathan" wrote in message
>> news:E45E768D-712C-4DF7-BC4D-819B40B34491@microsoft.com...
>> >I understand detecting the "E" part of this, but how do I capture a
>> >Cntrl-E?
>> > I want to be able to type data in a field, but have a window pop up on
>> > when
>> > Cntrl-E is pressed. The help file said to use acCtrlMask, but that
>> > seems
>> > to
>> > give the same value regardless of whether it is down or not. I'm
>> > confused.
>> >
>> > Thanks,
>> >
>> > Nathan

>>
>>
>>



Reply With Quote
 
Page generated in 0.14035 seconds with 24 queries