I have a parent form Form1 which is opened in fullscreen mode. There's a button in Form1 which opens a form Form2 (using .ShowDialog() method). When the form is closed, the program captures the screenshot of the Form1. But in the screenshot I can still see the Form2 which still has some opacity during closing (I'm using Microsoft Windows 7 Pro which animates the closing of the form by reducing the opacity of the form).
So how can I know when the Form2 is 100% closed, so that I can take screen shot of the program?
Edit: I'm using Graphics.CopyFromScreen Method in Form1 to capture the screen shot.
And Form2 is closed by the button click in Form2 using this.Close() method.