When i build a Console application and run it the console always closes after the program is executed which means I cannot view any output. How do I stop the console from closing?
Thanks
Printable View
When i build a Console application and run it the console always closes after the program is executed which means I cannot view any output. How do I stop the console from closing?
Thanks
Which is ur startup object? and wot's the command u use to display it?
i guess it would be frmStartupObject.Show()
try using frmStartupObject.ShowDialog
or
Application.Run("frmStartupObject")
hope it helps
It exits because it doesn't have anything left to perform. You need to make it want input:
VB Code:
Console.GetLine()
Then it will stop and wait for the user to press enter.
Phreak