Page 1 of 1

How to keep the console open (C#) *Best for new beginners

Posted: Thu Oct 31, 2013 9:04 pm
by thekingajew
For the very first time you start to code you will be told to start with an introduction e.g. welcome to my console, But what you will find is the console will close straight away with out running the program.

Since there was not a post here i would make a quick tutorial as this will be most beneficial to new people learning C# :)

Image
image upload no ads

Use these 2 lines of code to keep the console open, This code can be modified within the ("")
Code: Select all
//This is how to stop the console closing
            Console.WriteLine("Press key to close ... ");
            Console.ReadKey();
If this was any help why not check my site? Http://free4later.com

Re: How to keep the console open (C#) *Best for new beginners

Posted: Thu Oct 31, 2013 11:40 pm
by M1z23R
When you are debugging you can just debug with "CTRL+F5" and it will stay open ;)