OK...I am going to use VB6 code here...I know, I know...but I don't know .NET off the top of my head just yet.
I have a class clsWoof
Ok, now I am assuming that Finalize in .NET is the same as Terminate in VB 6...am I correct in this assumption?VB Code:
Public Class Class1 Protected Overrides Sub Finalize() MsgBox("Class Terminated") MyBase.Finalize() End Sub End Class
Now in my form I have:
OK, now I would expect the msgbox to appear when I click the button...NOT when I close my app down...I don't understand? Am I missing something really simple???VB Code:
Private Sub cmdWoof_Click() 'VB 6 code, but u get the idea Dim objNew As clsWoof objNew = New clsWoof objNew = Nothing End Sub
Woka (Just started .NET and is being really thick)




)
Reply With Quote