Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toolbar
Message
 
To
19/02/2003 18:22:50
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00755267
Message ID:
00755307
Views:
11
Bonjour Antranik,

This may be happening because after you close the modal form, there is no _SCREEN.ActiveForm available to be referenced.

Have you tried *hiding* your original form with oForm.Hide(), DOing the modal form, and then using oForm.Show() to view the original form again? (you can also set the oForm.Visible property to accomplish the same thing)


>Hello everyone,
>
>I have a toolbar class where I have five cmd buttons each calling a different Modal form.
>
>Each time I select one menu button my program closes the current form and opens the new form.
>
>This works great for the first time I click on each button, but once a button has been clicked on it will not work anymore. When I click on the toolbar button after the first click the Click event doesn't work.
>
>In each of my toolbar click events I have a similar code:
>oForm = _SCREEN.ActiveForm
>oForm.CloseThisForm && to close the current form
>DO FORM NEWFORM && to activate the new form
>
>Anyone any ideas what I'm missing?
>Thank you
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform