|
-
Oct 9th, 2002, 08:09 PM
#1
Thread Starter
Hyperactive Member
my console app closes right after the thing is displayed!
my console app closes right after the thing is displayed! how do i fix this?
-
Oct 9th, 2002, 08:36 PM
#2
Hyperactive Member
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.
-
Oct 9th, 2002, 08:44 PM
#3
Thread Starter
Hyperactive Member
or just that lol !
Console.ReadLine()
-
Oct 10th, 2002, 03:12 AM
#4
Fanatic Member
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)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|