Zuber Kazi

Zuber Kazi

  • NA
  • 36
  • 34.3k

Keys in C#

Mar 7 2012 7:05 AM
Hello everyone,
        I am developing a windows application in C#.
On form_keydown event
             if (e.KeyCode == Keys.Escape)
            {
                this.Close();
            }
this is working properly
but i want to save data on ctrl+s
i tried for
                 if (e.KeyCode == Keys.control + Keys.S)

but it throws an error
please help me out.

Regards,
Zuber I. Kazi.

Answers (4)