my console app closes right after the thing is displayed! how do i fix this?
Printable View
my console app closes right after the thing is displayed! how do i fix this?
If you set the startup object to Sub Main (ex. In console apps), when Main() finnishes, your program ends! To prevent this, you either have to:
Design your app to keep Main() executing (Run a constant loop, for example).
Or you can call System.Windows.Forms.Application.Run(), which basically runs such a loop in the background.
or just that lol !
Console.ReadLine()
Or you can run it from the Visual Studio .NET Command Prompt, but that requires a little typing (you would Build Solution and then switch to the command prompt window and type the executable name)