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.
我创建了一个新的 UI 样式,例如 Visual Studios 2012(例如上面的带有关闭按钮的行)
现在,当我单击它时尝试关闭应用程序(悬停工作正常),但是当我单击它时,表单会关闭,但程序不会停止调试。
有什么办法可以让程序停止调试?
Me.Close()、Application.Exit() 和 Application.ExitThread()不起作用。
查看您的项目属性菜单。可以选择程序何时结束。选项将像“第一个表单打开关闭”、“最后一个表单关闭”等。
可能是您打开了另一个表单,只是隐藏了它,没有关闭它。因此它仍然是打开的,应用程序不会关闭。
或者,只需键入将强制程序关闭的单词“End”
问候
乔