4
Answers

Keys in C#

Ask a question
Zuber Kazi

Zuber Kazi

12y
4.2k
1
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)