I never use the End statement here is what I do
VB Code:
Private Sub Form_Unload() 'Unload routine for main form Dim frm as Form For Each frm in Forms Unload frm Next frm End Sub
This way you actually unload all of your forms and when all of your forms are unloaded then the program ends on it's own.




Reply With Quote