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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unload Me

Status
Not open for further replies.

kindred

Programmer
Feb 28, 2001
50
US
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
 
You now call the Close method instead of the unload method. For example:

Private Sub Command2_Click(ByVal EventSender As System.Object, ByVal EventArgs As System.EventArgs) Handles Command2.Click
o.Close()
End Sub

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top