Exit code from Windows Forms app

后端 未结 3 1169
离开以前
离开以前 2021-02-12 17:46

How do i return a non-zero exit code from a Windows Forms application.

Application.Exit() is the preferred way to exit the application, but there is no exit code argumen

3条回答
  •  时光取名叫无心
    2021-02-12 18:15

    Go to event tab in your form and in click place double click on it and then in code place write Environment.Exit(0);

提交回复
热议问题