Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 C# 中创建了一个 Winforms 应用程序,并在其中提供了退出按钮。然后单击该按钮,我执行自定义函数,我在其中编写了
Application.Exit();
但它显示错误: