Multiple Modal Dialogs executing in the wrong order

Hi, I have multiple forms (lets say, 3) that each call a modal dialog (since they are windows, these dialogs do not block the other windows from executing, but block the form they reside in)

When the modal dialogs are called in a certain order, but closed/executed in a different order from the reverse of opening, the actions will not be executed in the order of closing, as desired.

For example, if the forms are A B and C, and the opening order is A B C, then closed in A B C, then the executing order will be C B A, regardless of the closing order, due to the blocking mechanism of modal dialogs.

Is there any way to force the code to execute the code of the closed dialog immediately, so ABC closed in ABC will still execute ABC, instead of CBA?

hi philzeh,
Is this in the webclient or smartclient?
And can you put in some code you are using?
tnx