tags:

views:

207

answers:

1

Should be an easy one. What is the value of the AltGr key in the System.Windows.Forms.Keys enumerator?

I've looked through it and can't see anything obvious ('AltrGr' no, 'RAlt' no, 'GrAlt' no).

Thanks Simon

Updated - Answered:

if (ModifierKeys == ( Keys.Control | Keys.Alt ) )
{
    // AltGr is held down
+1  A: 

From my minimal research on Google, in Windows you can substitue Ctrl + Alt to get the equivalent of the AltGr key. I don't think new keyboards have that key anymore.

Chris

Chris Dunaway