Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hidden MessageBox
Message
De
22/07/1997 15:20:15
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Hidden MessageBox
Divers
Thread ID:
00041174
Message ID:
00041174
Vues:
104
I have a recurring problem as follows:

I have a modeless form (FORM1) that calls a modal form (FORM2) via a command button. Within the modal form (FORM2), the user presses a button that necessitates a yes-no question to be answered. So I use a MESSAGEBOX to ask the question. The problem: most of the time, the MESSAGEBOX appears "underneath" the modal form (FORM2) and is, therefore, invisible to the user. If I Hide() FORM2 before calling the MessageBox, it shows up perfectly.

What, apparently, is happening is that the MessageBox "attaches" itself to the modeless form (FORM1), displaying itself on top of it. However, since the modal form (FORM2) takes up the entire screen, the MessageBox is invisible. If I press the key, the MessageBox jumps to the top--no idea why. BUT if the user doesn't know to press the key, the program looks as if it is hung up--there is a MessageBox waiting for an answer, but the user cannot respond since s/he can't see the damned thing! I have tried disabling both forms--no good.

Any ideas out there??? TIA . . . .

John
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform