Author |
Message |
Scooter341
|
Posted: Thu Apr 21, 2005 9:05 am Post subject: Exit help |
|
|
At the end of my program it asks if you would like to play again and I need to know if there is anyway that when the user says 'n', the program will exit and close down. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
TheEvilOne
|
Posted: Thu Apr 21, 2005 9:10 am Post subject: (No subject) |
|
|
Well technically you could do Window.Close(0) to close the main window, but then you would get a nice little crash window... |
|
|
|
|
|
Scooter341
|
Posted: Thu Apr 21, 2005 9:19 am Post subject: (No subject) |
|
|
I used Window.Close(1) and I didn't get any errors. |
|
|
|
|
|
TheEvilOne
|
Posted: Thu Apr 21, 2005 9:22 am Post subject: (No subject) |
|
|
ok, then that works too... glad you didnt get any errors >_> |
|
|
|
|
|
[Gandalf]
|
Posted: Thu Apr 21, 2005 3:28 pm Post subject: (No subject) |
|
|
Or you can just check the "close program on completion" box when compiling... |
|
|
|
|
|
|