Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call refresh method of form1 from form2 ??
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00394128
Message ID:
00394202
Vues:
10
Hi Allan.

>> In my app, I have a borderless, captionless 'form' that serves as the background in the main screen of my app. This form (form1) contains a few read-only textboxes and the application logo. I'd like to be able to call the refresh method of this form (form 1) from another form (form2). I'm not sure how to do this - any ideas? <<

How about this: in the init of Form1, put code like this:

_Screen.AddProperty( 'oMainForm', This )

and add this code in the destroy of form1

_Screen.oMainForm = .NULL.

Then, whenever you need to reference form1, all you need to do is refer to _Screen.oMainform.

Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform