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?