Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close top form from toolbar
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00981030
Message ID:
00981156
Vues:
39
>>My main form which is a top-level form has A toolbar that is opened as in top-level form. What is a way to close main form from a click on a toolbar button?
>>
>>Thanks, Mark
>
>This key is to get the reference to the main form.
>If you know the name of the main form, then you can find a handle to that form:
>
>In the toolbak button click event:
>FOR EACH oform IN _screen.Forms
>  IF LOWER(oform.name)="mainform"
>    oform.release()
>  ENDIF
>NEXT
>
No, it does not work. Main form is not released and still shown on the screen. As I said in my original message the toolbar is shown in top-level form - the one I am trying to close clicking on a toolbar.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform