we have Function A which is a dialog and Function B which is a dialog. Dialog A calls B. Problem is that dialog function A is not waiting for B to be finished and goes on with execution. In C# the following behaviour is that firstly the Dialog message is displayed instead of waiting for the user to click on "OK" in the B Dialog function. If we close the Dialog message, the A (Menu) function is shown and the A (Dialog) function is displayed in front of it.
Environment
windows
Cause
Function Dialog Boxes open in wrong order.
Resolution
In built application’s config (<App>.Exe.config), set Window loading order ‘AllowDefaultWindowLoadOrder’ to ‘True’. See Sample below: