Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Something like this.
У формы есть событие KeyPress и KeyDown.
if(e.KeyChar == 'д')
{
Application.Exit();
}
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyCode == Keys.L)
{
Application.Exit();
}
}
do
{
//Тут что надо делать. Или не надо.
} while (Console.ReadKey().Key != ConsoleKey.L);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question