Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ON Shutdown Problem
Message
De
27/07/1998 03:08:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
27/07/1998 00:15:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00121537
Message ID:
00121562
Vues:
9
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform