Maximizing a tabbed form

B

Bill Murphy

I have a tabbed form as the main form in my application. I have it
maximized when the app first opens so it is surrounded by a grey border
filling up the entire screen. However, if I click on another program on the
task bar, then click again on the application on the task bar the main form
reappears, but is missing about the bottom 15% of the form so that I can
still see the other application behind the main form. If I click on the
icon in the upper right corner of the screen between the minimize button and
the close button (can't think of this button's name) the main form reduces
in size. If I then click on the maximize button the main form completely
maximizes filling the entire screen with a grey border surrounding the
tabbed form.

This same behavior occurs when I make the main form not visible in order to
display a report in view mode. The main form does become invisible and the
report displays. When I close the report the main form once again is made
visible (using the main form's .visible property in the report close), but
again the lower 15% of the screen is not filled in with grey. Only about
the top 85% of the main form displays and I can see whatever is behind the
main form in the bottom 15% of the screen.

Is there a way to re-maximize the main form in VBA to avoid this?

Bill
 
B

Bill Murphy

I solved this by making the tabbed form wider and taller. Now it fills the
full screen when becoming visible after previewing/printing a report.

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top