我知道您应该始终在模态表单上调用 dispose 。但是,我有一个相关的问题。
如果我的应用程序中有一个方法,例如
Private Sub tempMethod
Dim expForm as new ExplorerForm(tempDataTable)
expForm.ShowDialog
'Should I call dispose here?
'or would the form be automatically disposed when it goes out of scope
'after this method exits?
End Sub