Hi,
I need to access "ModifierKeys" from a class, not from a form (I have a reference to that form, but frm.Modifierkeys is not allowed from the class). Is that possible, and if yes, how?
Thanks!
Hi,
I need to access "ModifierKeys" from a class, not from a form (I have a reference to that form, but frm.Modifierkeys is not allowed from the class). Is that possible, and if yes, how?
Thanks!
If you can pass KeyEventArgs
to your class (from a KeyUp
or KeyDown
event handler), you have access to the KeyEventArgs.Modifiers
property.