Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing one form from within another
Message
 
À
13/05/2004 13:52:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00903728
Message ID:
00903742
Vues:
19
This message has been marked as the solution to the initial question of the thread.
>I have 2 forms. Form1 is run from program "run_a_form.prg". The cmd1.click event of Form1 runs Form2. How can I close Form1 from the cmd1.click event of Form2?
>
>TTA
>
>dg

You could do it this way:
*run_a_form.prg
DO FORM form1 NAME myform1 
READ events

*Run form2 from form1


* Form2.ButtonCloseForm1.Click() method
myform1.Release()
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform