Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call refresh method of form1 from form2 ??
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00394128
Message ID:
00394251
Views:
11
>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

Thanks Marcia, I like that approach - it works juist fine. Thanks again.

Al
Al Williams

Anola MB, CANADA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform