Use Form.ModifierKeys
Ciaran O'Donnell
> 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)?
Morten Wennevik - 09 Nov 2006 12:38 GMT
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.
> Use Form.ModifierKeys
>
[quoted text clipped - 5 lines]
>> when
>> not responding to a key-event)?

Signature
Happy Coding!
Morten Wennevik [C# MVP]