When I show a preview with showPrintPreview method from ‘FormA_normal’ it works fine.
When I show the preview ‘Preview_of_formC’ from ‘FormB_in_dialog’, the preview is correctly show in dialog, but when I close it, the form in dialog load ‘FormC_for_preview’ (not the last form use ‘FormB_in_dialog’) and the ‘FormA_normal’ in background change for ‘FormB_in_dialog’.
When I show a preview with showPrintPreview method from ‘FormA_normal’ it works fine.
So, basically this tells you it works.
When I show the preview ‘Preview_of_formC’ from ‘FormB_in_dialog’, the preview is correctly show in dialog, but when I close it, the form in dialog load ‘FormC_for_preview’ (not the last form use ‘FormB_in_dialog’) and the ‘FormA_normal’ in background change for ‘FormB_in_dialog’.
Does your formb or formc have an onShow method attached that make it perform differently?
When you go back from a formindialog the form in the main frame will ‘show’ again so the onShow is triggered again…
Little hard to debug this way.
Anyway when you are really sure you did nothing wrong you should add it to the Support System along with your (unprotected!) solution…