Hi all:
Please help...
I have a formset that contains a main form. In one of the form's methods, I need to run a dialog form which is a part of the formset. Take the following code as an example:
ThisFormSet.frmMain.Enabled = .f. && disable main form
ThisFormSet.frmDialog.Show() && show dialog form
=messagebox("Test.") && pop up message
An Ok button in the dialog form contains code to hide the dialog form and return the user to the main form. What I want to do is pop up a message after the Dialog form is closed.
However, the behavior I is something like:
1. the main form is disabled.
2. the dialog form is shown
3. the messagebox pops up, without waiting for the dialog form to close
I am thinking of using a modal form separate from the formset to overcome this problem. However, as much as possible, I would like to keep all related forms within the formset.
Would appreciate all suggestions I can get.
Thanks in advance,
Bernard L. Omiple
VFP, SQL Server, Crystal Reports