我知道你应该总是在模态表格上调用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