where to put that code if I want this peace of code to be called when the dialog disappears??

Please Help

VisualPenguin