I fairly new to C# and I'm building a console app for a class assignment, How do I get the window to stay up until a key is pressed? It works fine when I run w/o debug but closes immediately when I run with debug or when published to exe. It's an assignment and the teacher will need to see the results. Also since I'm new to C# is publish the best or easiest way to build an exe?
Thanks,
Ken
Posted Sep 12, 2007, 2:13 PM
I am also fairly new to C#. As far as I know Console.ReadLine(); statement will retain the console screen untill you press the Enter key.