"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:Op**************@TK2MSFTNGP04.phx.gbl...
When running a console application through Visual Studio what's the best
method to keep the Window open so I can read "Hello World?"
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
If you are just testing, you can run the app in the debug mode. This will
display a "Press any key to continue..." method. If you don't want this
message, or are running in non-debugger, you can just place a line at the
end of the Main() method that waits for a character to be pressed...
[STAThread()]
public static void Main(params string[] Args)
{
Console.WriteLine("Hello World");
Console.ReadLine();
}
HTH,
Mythran