How to tell if Ctrl is pressed ...?

  • Thread starter Thread starter Du
  • Start date Start date
D

Du

How to tell if the Ctrl key is pressed without being inside a
keypress/keyup/keydown event?

I want distinguish between a "click" and a "ctrl+click" on a button.

any suggestion?

thanks
 
if (System.Windows.Control.ModifierKeys & Keys.Control == Keys.Control)
{
// Control is pressed
}

-vJ
 
Back
Top