Re: Maximize

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Joe,

The form is probably created with the AutoSize property set to Yes. This
will cause the form's window to "fit to size" the form's dimensions as you
would see them in design view. Yes, while in design view, you usually have
to play with the window borders a little to see the whole form. Also, as you
switch from design view to form view, the behavior is not the same as when
you first open the form. Instead, the design view window size will be
retained (instead of AutoSize) unless there is some code that changes it as
the form opens in form view. Now, if your form is large enough and the
Access window is sized so that when the form sizes itself to fit, it may be
filling the screen. Check the buttons at the top right of the form to see if
it is maximized or restored but stretched. The middle of the 3 buttons is
the indicator for this.

--
Wayne Morgan
MS Access MVP


"Joe Frank via AccessMonster.com" <u16749@uwe> wrote in message
news:597ded5ecb194@xxxxxx
> Thanks for responding back, Wayne!
>
> What I am seeing does not follow what you are saying. Neither FormA or
> FormB
> is a popup form. I use the form wizard or just select form design to
> initially create the forms. Just thinking here, the form wizard nor form
> design does not produce a form that fills the screen. I have to always
> pull
> down the bottom border. Is this normal? Are the forms I am creating
> maximized?
> They do fill the screen when I go to form view!
>
> Anyway, once the forms are created, I use Docmd.Openform to open FormA. It
> fills the screen so I presume it is maximized. The I use DoCmd.openform to
> open FormB. It also fills the screen so I presume it too is maximized. I
> never un-maximize FormB. When I close FormB, FormA appears but it is
> reduced.
> I seem the same behaviour with a report. I open FormA with DoCmd.OpenForm.
> Then I open a report in print preview. When I close the report, FormA
> appears
> but it is reduced here too.
>
> It seems to me I should not have to put DoCmd.Maximize in the Activate
> event
> of every form so if I open another object on top of the form, the form
> will
> appear maximized when it gets the focus again.
>
> I have always had this problem in Access97, 2000 and XP! I am thinking
> that
> maybe I am not building the forms right initially or that I have always
> had
> some setting set wrong!!
>
> Hope you can shed light on this for me!!
>
> Wayne Morgan wrote:
>>If you open form A maximized then form B maximized and you never
>>un-maximize
>>form B, then when you close form B, form A should still be maximized
>>unless
>>you have some code that is causing it to do otherwise. One thing to check,
>>is form B maximized or is it in restored view but just sized to fill the
>>screen area?
>>
>>>I don't understand! Say Form A opens as a full screen form. Then I open
>>>Form
>>[quoted text clipped - 14 lines]
>>>>>
>>>>> Thanks!
>
> --
> Message posted via http://www.accessmonster.com


.


Quantcast