I have a form with some command buttons that run queries and then open a report in preview mode. The form is about five inches by three inches, and it opens in a window sized to fit it. So far, so good.
The reports open in a window that is too small to be useful - so the natural reaction is to maximize the window. However, when the user then closes the form view (typically after printing) the form loads again - but now it is in a maximized window, leaving the form in the upper left with an ocean of gray around it. The user MAY think to 'restore' the window (and then we are all happy) or he may try to close via the "X" close box (and then we are not happy). Either way, it looks very sloppy.
I have looked for a command that would re-size the window back where it should be that I could attach to the 'gotfocus' event - it seems available for controls, but not for the window. Does anyone have any suggestions?