How to close form

后端 未结 8 2127
南旧
南旧 2021-02-18 23:54

Ok, so a Windows Forms class, WindowSettings, and the form has a \"Cancel\"-button. When the user clicks the button, the dialog DialogSettingsCancel will pop-up up and ask the u

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-19 00:18

    You can also close the application:

    Application.Exit();
    

    It will end the processes.

提交回复
热议问题