What is the Dispose method in Visual Basic
What is the Dispose method in Visual Basic and explain it with example ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Martin van EerdePosted Mar 14, 2011, 7:35 AM
http://msdn.microsoft.com/en-us/library/system.idisposable.dispose(v=VS.80).aspx
GaryPosted Feb 24, 2011, 9:55 AM
If frmSettings.ShowDialog = Windows.Forms.DialogResult.OK Then
'do Something
End If
frmSettings.Close()
frmSettings.Dispose()
Here is a good starting point for further reading.
http://madgeek.com/Articles/Leaks/Leaks.en.html
Also Google- Dispose .net