Hi Bernard;
>
>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.
>
Try it:
Show window (ThisFormSet.frmDialog.name) top in window (ThisFormSet.frmMain.name)
Show window (ThisFormSet.frmMain.name) top
HTH
Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20