In VB6 i use a Form and a Class module.
Dim MyClass as New Class1
In Form_Load:
Set MyClass = New Class1
In Form_Unload:
Set MyClass = Nothing
This works in VB6
But in .NET i can not destroy the class.
The class only destroys when i Close the application.
If i use the VB6 to .NET wizard, i get an upgrade note:
UPGRADE_NOTE: Object mycls may not be destroyed until it is garbage
collected. Click for more:
'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="vbup1029"
So how do i destroy a class in .NET
Thanks