J
Jim Edgar
I'm relatively new to this group so I apologize if this topic has been tossed around
before. I'm transitioning from VB6 to VB.net and I've been reading and working through
examples in a Microsoft Press book. In all of the examples the author uses End() to exit
the program. In VB6 it is unacceptable to use End because the program suddenly terminates
and no "clean up" occurs. In VB6 I use code like:
Private Sub cmdClose_Click()
Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
On Error Resume Next
Dim f As Form
For Each f In Forms
Unload f
Set f = Nothing
Next
End Sub
Is there anything similar in .Net or is the use of End() acceptable?
Jim Edgar
before. I'm transitioning from VB6 to VB.net and I've been reading and working through
examples in a Microsoft Press book. In all of the examples the author uses End() to exit
the program. In VB6 it is unacceptable to use End because the program suddenly terminates
and no "clean up" occurs. In VB6 I use code like:
Private Sub cmdClose_Click()
Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
On Error Resume Next
Dim f As Form
For Each f In Forms
Unload f
Set f = Nothing
Next
End Sub
Is there anything similar in .Net or is the use of End() acceptable?
Jim Edgar