Found the solution.
In queryunload use cancel= true after testing unload mode and set canel=true
only if unloadmode=0
Thanks anyway guys
Satya
----- Original Message -----
From: "Satyajeet Hattangadi" <satyajh@m...>
To: "professional vb" <pro_vb@p...>
Sent: Tuesday, March 11, 2003 2:36 PM
Subject: [pro_vb] Terminating an app
> Hi,
>
> I have an app that i load on startup by making an entry in the
> "HKEY\CURRENT_USER\SOFTWARE\MICROSOFT\WINDOWS\CURRENT_VERSION\RUN" key .
>
> The app startsup properly on start up , performs an operation that takes
> about 10 seconds.
>
> The main form is not visible but loaded.
>
> I have set up a hotkey that the user can press to make the main form
> visible.
>
> NOW THE PROBLEM.. when ever the user tries to shut down windows the app
does
> not terminate and does not allow windows to shut down, unless the app is
> closed using the task manager.
> After the operation the app does in the first 10 seconds, the app is
> basically idle.
>
> Now the question... why doesnt windows shut down.
> Whats causing the app to stay running? and what do i do to make it so that
> the app will close on windows shutdown
>
> Thanks in advance
> Satya
>
> *********************************************************
> Disclaimer
>
> This message (including any attachments) contains
> confidential information intended for a specific
> individual and purpose, and is protected by law.
> If you are not the intended recipient, you should
> delete this message and are hereby notified that
> any disclosure, copying, or distribution of this
> message, or the taking of any action based on it,
> is strictly prohibited.
>
> *********************************************************
> Visit us at http://www.mahindrabt.com
>
>
>
>
>
*********************************************************
Disclaimer
This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.
*********************************************************
Visit us at http://www.mahindrabt.com