Command to close an application of console?

后端 未结 6 429
天涯浪人
天涯浪人 2020-11-28 08:26

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?

6条回答
  •  [愿得一人]
    2020-11-28 08:46

    Environment.Exit and Application.Exit

    Environment.Exit(0) is cleaner.

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

提交回复
热议问题