>Hi,
>
> I had problem with the ON SHUTDOWN command.
>Mine code on shutdown call a PRG file that display a messagebox, then return to the main application.
>
>Now, the problem is that when my main application detected any error when initializing, it will exit the main application by a RETURN command, then the on shutdown procedure will be call. It is also call when I tried to force my application to shutdown using ALT-CTRL-DEL key. What did i do wrong or miss.
>
>My main objective is because when my application run, the main window always had the three option of the minimum, maximum and exit. I do not want to display all the three of them. How do I display the exit option leaving the minimum alone.
>
>Any help or suggestion is very much appreciated. Thank you.
Hi,
For errors, rather you should use "on error" or object's error event. You could decide which options would be in windows by Minbutton, maxbutton, closable, controlbox etc props. Besides you could control how a form is exited with form's queryunload event.
Cetin