Hello Everyone:
I am trying to remember how to stop a console application from closing after it has run. I want the window to remain on the screen until I am ready to close it.
Thanks
Art W.
Printable View
Hello Everyone:
I am trying to remember how to stop a console application from closing after it has run. I want the window to remain on the screen until I am ready to close it.
Thanks
Art W.
Something like
dim foo as boolean = true
do while foo
console.writeline("QUIT?")
if console.readline().toupper="Y" then
foo = false
else
'code
end if
loop
This too would work...
Code:'stops console window from closing prematurely
Console.WriteLine("Press ENTER to EXIT")
Console.ReadLine().ToUpper()