I need to hide the main form in order to take a screenshot. I use Form.Hide()
, but the method finishes executing while the animation still proceeds (on Windows 7). As a result, the screenshot contains a warped form image instead of no form at all. How to get around this issue? Form.VisibleChanged
event has the same effect.