How to assign Control + . as a shortcut key?

65 views Asked by At

I want to catch keys in my winform KeyDown event and set Control + . as a shortcut key.

But I can't find . (dot) key in Keys list.

private void frmMain_KeyDown(object sender, KeyEventArgs e)
   {
     if (e.Control && e.KeyCode == Keys.DOTKEY) //what is dot key
        //Do somthing
   }
1

There are 1 answers

0
Bahman_Aries On BEST ANSWER

Keys.Decimal on the US layout and Keys.OemPeriod on the German layout are what you're looking for.