Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to reference a mdi form from a child form?
Message
De
07/06/2002 12:20:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00666004
Message ID:
00666023
Vues:
16
>Hi I have a mdi top level form and I have added a container class with buttons as a toolbar. I launch other mdi forms as "show in top level" and it works fine - these are my various data entry forms... My question is how do enable/disable the buttons in my container class on the top level mdi form?
>I have tried this in the "show in top level form"...
>
>thisform.parent.myContainer.myButton1.enabled = .t.
>
>but I get the error "Parent is not an object"
>Any ideas appreciated!
>Thanks
>Chris

Chris,
MDI or SDI there isn't a direct relation between forms.
You could launch a for with name clause and use that name from another form.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform