Hi Tomeo,
You can use the posthide event of the dialog. Basically the dialog is never deleted or closed but only hided.
I found this when I implemented a wizard style dialog, that after step3 it closed. When I called the dialog again it started from step3! as if it was never deleted.