
-----------------------------------
Scooter341
Thu Apr 21, 2005 9:05 am

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.

-----------------------------------
TheEvilOne
Thu Apr 21, 2005 9:10 am


-----------------------------------
Well technically you could do Window.Close(0) to close the main window, but then you would get a nice little crash window...  :?

-----------------------------------
Scooter341
Thu Apr 21, 2005 9:19 am


-----------------------------------
I used Window.Close(1) and I didn't get any errors.

-----------------------------------
TheEvilOne
Thu Apr 21, 2005 9:22 am


-----------------------------------
ok, then that works too... glad you didnt get any errors >_>

-----------------------------------
[Gandalf]
Thu Apr 21, 2005 3:28 pm


-----------------------------------
Or you can just check the "close program on completion" box when compiling...
