View Single Post
  #3 (permalink)  
Old 06-03-2008, 03:50 PM
Erel's Avatar
Erel Erel is offline
Administrator
 
Join Date: Apr 2007
Posts: 3,337
Default

AppClose closes the main form and therefore launches Sub Form1_Close which then calls AppClose again.

The simplest solution is to move your cleanup code into Sub Form1_Close.

You can use Form.CancelClose to cancel the closing process.
Reply With Quote