Re: Program closure
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 26 Sep 2005 10:03:19 +0200
"Tim Cogher" <tim.cogher@xxxxxxxxxx> wrote in message
news:11jb09m3avf8kb0@xxxxxxxxxxxxxxxxxxxxx
> I am trying to force any users of my program to close it using the
> Exit menu item and not simply stop the program using the top right
> red cross icon ( in Win XP).
For Gods' sake, why?
> Everything I have tried doesn't work, either it stops the program
> exiting altogether or the program exits straight away.
>
> What do I need to do to get this to work?
Alan and Jamie are trying to tell you what you want to hear; Rob has
told you what you need to hear. I side with Rob.
You are programming in Windows. In Windows, pressing the close button
closes a window. Closing the last (or the primary) window in a program
closes the program. *Follow this model*. Don't try to fight the system.
So again, _why_ are you doing this? You've probably made an earlier
mistake and are now trying to correct for its consequences. Tell us
more and we'll point out the earlier mistake so you can correct the
cause instead of the symptoms. The effect will be that users who know
how Windows works, will know how your program works. This predictability
will be to everybody's advantage.
Groetjes,
Maarten Wiltink
.
- Follow-Ups:
- Re: Program closure
- From: J French
- Re: Program closure
- References:
- Program closure
- From: Tim Cogher
- Program closure
- Prev by Date: Re: Auto-saving the registry
- Next by Date: Re: Auto-saving the registry
- Previous by thread: Re: Program closure
- Next by thread: Re: Program closure
- Index(es):