In vb 6 you set an object to nothing. What's the best way to destroy an object and force garbage collection?
I have used the following code to destroy a form, it works but seems a bit 'over the top' - grateful for your suggestions.
frmNew.Close()
frmNew.Dispose()
frmNew = Nothing
I have used the following code to destroy a form, it works but seems a bit 'over the top' - grateful for your suggestions.
frmNew.Close()
frmNew.Dispose()
frmNew = Nothing