Modifier Key without KeyEventArgs

  • Thread starter Thread starter Martijn Mulder
  • Start date Start date
M

Martijn Mulder

How can I check the state of the modifier keys (Alt, Control, Shift) when
there is no System.Windows.Forms.KeyEventArgs-object available (i.e. when
not responding to a key-event)?
 
Just to clarify, Form.ModifierKeys is actually Control.ModifierKeys.

It is not reliable inside a KeyUp/Down (and perhaps Press) event, but
outside if should be fine.
 

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

Back
Top