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.
在 Visual Basic 6.0 中,我可以使用以下代码来停止调试所有窗体:
Private Sub Form_Unload(Cancel As Integer) Dim Form As Form For Each Form In Forms Unload Form Set Form = Nothing Next Form End Sub
我的问题是:如何使用与上述代码类似的代码停止调试 Visual Basic Express 10 中的所有表单?请帮我解决这个问题。
没有额外的管道、VB 特定功能以及支持在其他程序集中创建的表单等的最佳选择是Application.Exit.
Application.Exit