close form

Mr_Braytee

New member
Joined
Jun 8, 2006
Messages
2
Programming Experience
1-3
hi for all
how to close the form in vb.net and removed from memory
by
me.close()
me.dispose(true)
 
Me.dispose will inform the CLR that this object is no longer needed and can be considered for garbage collection (In a simple sense anyway) As far as removing that object from memory goes, that remains the whim of the CLR.

Me.close will just hide the object
 
Me.Close hides the form at first, but also drops itself out of scope, objects that fall out of scope are disposed of by the garbage collection
 
Also if your object is a form and it is displayed modally then me.close will not make the object go out of scope, atleast not straight away.
 
Back
Top