Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unload Me (Repost)

Status
Not open for further replies.

kindred

Programmer
Feb 28, 2001
50
0
0
US
Sorry for the repost, but i really need an answer to this.

Under VB .Net how do I unload a class within itsself. For example:

Previously in VB6:
It was simple as Unload Me and it would destroy the class itsself.

Any thoughts on this would be greatly appreciated.


Thanks,
Stephen
 
Me.Close()

according to a post I found:


hope it helps! :)
paul
penny1.gif
penny1.gif
 
I think it my be

MyBase.Dispose

VBXL
 
VBXL -

You only want to call the Dispose method if your class has some limited resource that you can't wait for the garbage collection to occur. Things like database connections, windows handles, etc. Otherwise, call the close method and let the GC do it's thing -- it's pretty smart.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top