Hide controls/GUI components before screen capture
Hi,
I'm having a problem obtaining a clean screen capture of my form when I attempt to hide all unnecessary components before I capture a bitmap of the form. The problem is that as I hide the components, the form does a repaint, but before the repaint process is completed the bitmap is captured in between the repaint process. I only want to capture the components that I want to do a print screen. Here are the steps that I'm trying to do:
'Hide all components
components.visible = false
...
'Capture bitmap
GetImage(pnlDisplay)
...
'Print bitmap
PrintDocument.Print()
Any ideas on what steps I might take to achieve this?
Thanks,
Wai
|