Command to close an application of console?

ale picture ale · Apr 15, 2011 · Viewed 245.4k times · Source

I need to close the console when the user selects a menu option.

I tried using close() but it did not work..

how can I do this?

Answer

Priyank picture Priyank · Apr 15, 2011

Environment.Exit and Application.Exit

Environment.Exit(0) is cleaner.

http://geekswithblogs.net/mtreadwell/archive/2004/06/06/6123.aspx