Or only have it fire if there are uncommitted changes, like Office does....
>>What is the proper way to verify if a user wants to quit an application? I have the following in my Destroy event, but I don't know what to do if they answer 'No'.
>
>>Answer=MessageBox("Are you sure you want to quit?",276,"Quit?")
>
>Begin soapbox...
>
>I would lose that message completely - it's very passe now, and most users (especially me) find it extremely irritating. I get turned off immediately by any app that contains that message, and especially if I'm doing product trials, I won't buy one with that message, period. Do you see it in any other common apps, like IE or Word?
>
>Or at least make it an option that users can turn off.
>
>End Soapbox...
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05