Detecting if ONLY a modifier was pressed

A

Andy Gilman

How do I detect in a keyUp or keyDown handler if ONLY a modifier key was
pressed.

I pop up a list when the user starts typing. I dont want it to popup if they
just hit Shift or Ctrl by themselves.
 
H

Herfried K. Wagner [MVP]

* "Andy Gilman said:
How do I detect in a keyUp or keyDown handler if ONLY a modifier key was
pressed.

I pop up a list when the user starts typing. I dont want it to popup if they
just hit Shift or Ctrl by themselves.

\\\
If Control.ModifierKeys = Keys.Ctrl Then
...
End If
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top