Click to See Complete Forum and Search --> : How to keep console window open after program exits


Pipe
January 25th, 2001, 10:00 PM
hello,
after i run my vb console application from the ide it immediately closes so i cannot see what was written to it. where is the setting to keep this window open until i close it?

thanks,
p

saurabhN
January 27th, 2001, 12:38 AM
I dont know the code for VB but the code from C# would be
Console.ReadLine() ;
Put this as a last statement in your code so your code will wait till your press enter and then it will exit,
Another way would be to start the command prompt "Ms-Dos Prompt" manually go to the directory that has the EXE and run the EXE from the prompt



Saurabh Nandu
mailsaurabhn@webveda.com
http://Learncsharp.cjb.net