C Acheson-Crow
August 13th, 1999, 04:37 PM
I am printing to a blank form and using it as a basic form of Print Preview. However, if a window is opened over the form then the print under the window disappears when the window is closed. Can anyone tell me why this is happening and how to stop it. Also if anyone knows of a more robust method of creating a print preview I would be very grateful
Many thanks
Charlie
Hover Xiao Bo
August 13th, 1999, 08:19 PM
Your preview window needs to be redraw when a window above is closed.
You can put your preview code(those code which output to the preview window)into the Form_Paint eventhandling subrouting.
You can also set the AutoRedraw property of the preview window to true to accomplish this task.
C Acheson-Crow
August 14th, 1999, 03:41 AM
Many Thanks
I can't believe I managed to miss the AutoRedraw property.
I guess that's what comes of not bothering to learn properly and taking shortcuts
Cheers Charlie