Hello !
There is a console application ( very primitive ). I have Console.ReadKey() with which I can read the key pressed so that the application closes.
do { } while (Console.ReadKey(true).Key != ConsoleKey.A); For example, it closes when you press A
Question: how can I make it so that the application does not close when ANY key is pressed, but only when I click on the cross
In principle, I tried to do while(true){} but this is very stupid :)
Thank !