Jay1b Posted March 9, 2005 Posted March 9, 2005 (edited) Could someone just clear this up please? Dim frmEdit as new frmEdit frmEdit.Show() 'Do i need this? Or does closing the form do this automatically? frmEdit.Dispose() Also if i am calling my own (simple codebased) class from within a module, do i need to dispose it? If so how? Thanks. Edited March 9, 2005 by Jay1b Quote
Tygur Posted March 9, 2005 Posted March 9, 2005 If you call Close (or if something else does it), then you don't need to call Dispose. As for your own class, you won't even be able to call Dispose unless you somehow make it implement IDisposable (either directly or inheriting a class that implements it, or for that matter, implementing an interface that inherits it). Then if you do, then yeah, you should be calling Dispose. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.