Thread
:
Close(ok) Button
View Single Post
#
3
(
permalink
)
06-03-2008, 03:50 PM
Erel
Administrator
Join Date: Apr 2007
Posts: 3,337
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.
Erel
View Public Profile
Send a private message to Erel
Find all posts by Erel