I would code the Form_Unload event. This is what the X button call when clicked... Maybe the wizard put something in it that doesn't work right. In any case, if you want a radical method ,just put "End" as the code in the Form_Unload
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only