-1

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
   }
Ghasem
  • 14,455
  • 21
  • 138
  • 171

1 Answers1

1

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

Bahman_Aries
  • 4,658
  • 6
  • 36
  • 60