QueryUnload, perhaps?

rk

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of MB Software Solutions, LLC
Sent: Thursday, August 13, 2009 2:22 PM
To: [email protected]
Subject: Releasing a form via the Close button in the top-right corner of the 
form

VFP9SP1

This is one of those silly things I've dealt with over the years but 
forgot apparently.  I've got a modeless form that is called from my main 
program with a READ EVENTS in the main.prg right after the loFrm.Show 
call.  In the form, I've got a button called "Quit" that does a 
thisform.release and that works great, but I want the user to be able to 
just close the form via the "big X" (lol) in the top-right corner of the 
form.  I put a CLEAR EVENTS in the Form's Unload event, but that doesn't 
seem to be the right place for it, because when it never drops to the 
next line in my main.prg after the .Show line.  Ideas?



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/df1eef11e586a64fb54a97f22a8bd04406552e7...@ackbwddqh1.artfact.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to