PC Review


Reply
Thread Tools Rate Thread

Alternatives? DoCmd.Maximize, DoCmd.Restore

 
 
Richard Hollenbeck
Guest
Posts: n/a
 
      28th Aug 2004
I have a main form which I use like a switchboard and I want to keep it
maximized ALL THE TIME. All other forms I want to be auto-centered,
non-moveable, modal, dialogs in normal size. If I put DoCmd.Restore in the
Form_Open subroutine of the subsequent forms it also restores my main form.
I want the main form to stay maximized throughout the session. Is there a
better solution to my problem than some crazy combination of Maximize and
Restore? Even if not, is there a way I can keep the main form maximized all
the time without all the subsequent forms also being maximized?

Thanks.

Rich Hollenbeck


 
Reply With Quote
 
 
 
 
Marshall Barton
Guest
Posts: n/a
 
      28th Aug 2004
Richard Hollenbeck wrote:

>I have a main form which I use like a switchboard and I want to keep it
>maximized ALL THE TIME. All other forms I want to be auto-centered,
>non-moveable, modal, dialogs in normal size. If I put DoCmd.Restore in the
>Form_Open subroutine of the subsequent forms it also restores my main form.
>I want the main form to stay maximized throughout the session. Is there a
>better solution to my problem than some crazy combination of Maximize and
>Restore? Even if not, is there a way I can keep the main form maximized all
>the time without all the subsequent forms also being maximized?



A neat trick that Albert Kallal Pointed out awhile back is
to set the Min/Max Buttons property to None for forms that
you do not want maximized.

--
Marsh
MVP [MS Access]
 
Reply With Quote
 
Van T. Dinh
Guest
Posts: n/a
 
      28th Aug 2004
You can use the Sub MaximizeRestoredForm method from The Access Web article:

<http://www.mvps.org/access/api/api0022.htm>

HTH
Van T. Dinh
MVP (Access)



"Richard Hollenbeck" <(E-Mail Removed)> wrote in message
news:YCQXc.178$XK5.177@trnddc02...
> I have a main form which I use like a switchboard and I want to keep it
> maximized ALL THE TIME. All other forms I want to be auto-centered,
> non-moveable, modal, dialogs in normal size. If I put DoCmd.Restore in

the
> Form_Open subroutine of the subsequent forms it also restores my main

form.
> I want the main form to stay maximized throughout the session. Is there a
> better solution to my problem than some crazy combination of Maximize and
> Restore? Even if not, is there a way I can keep the main form maximized

all
> the time without all the subsequent forms also being maximized?
>
> Thanks.
>
> Rich Hollenbeck
>
>



 
Reply With Quote
 
Richard Hollenbeck
Guest
Posts: n/a
 
      28th Aug 2004
Thanks. I went to that website and copied the code into a module, but I
don't know what to do with it.

Sub MaximizeRestoredForm(F As Form) So F represents my form name?

Do I do something like this?

Private Sub Form_Load()
MaximizeRestoredForm(WhateverMyFormsNameIs)
End Sub

Do I call it from my main form that I want to keep maximized? What
parameter do I put in there? It doesn't seem to want my forms name either
with or without quotes, and it doesn't like Me (the object, not the person).

"Van T. Dinh" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> You can use the Sub MaximizeRestoredForm method from The Access Web

article:
>
> <http://www.mvps.org/access/api/api0022.htm>
>
> HTH
> Van T. Dinh
> MVP (Access)
>
>
>
> "Richard Hollenbeck" <(E-Mail Removed)> wrote in message
> news:YCQXc.178$XK5.177@trnddc02...
> > I have a main form which I use like a switchboard and I want to keep it
> > maximized ALL THE TIME. All other forms I want to be auto-centered,
> > non-moveable, modal, dialogs in normal size. If I put DoCmd.Restore in

> the
> > Form_Open subroutine of the subsequent forms it also restores my main

> form.
> > I want the main form to stay maximized throughout the session. Is there

a
> > better solution to my problem than some crazy combination of Maximize

and
> > Restore? Even if not, is there a way I can keep the main form maximized

> all
> > the time without all the subsequent forms also being maximized?
> >
> > Thanks.
> >
> > Rich Hollenbeck
> >
> >

>
>



 
Reply With Quote
 
Van T. Dinh
Guest
Posts: n/a
 
      28th Aug 2004
I normally use the Activate Event of the Form I want to occupy the whole
Access Application window. You can simply use:

Call MaximizeRestoreForm(Me)

(I used this in A2K2.)

--
HTH
Van T. Dinh
MVP (Access)




"Richard Hollenbeck" <(E-Mail Removed)> wrote in message
news:sgZXc.282$6q.57@trnddc06...
> Thanks. I went to that website and copied the code into a module, but I
> don't know what to do with it.
>
> Sub MaximizeRestoredForm(F As Form) So F represents my form name?
>
> Do I do something like this?
>
> Private Sub Form_Load()
> MaximizeRestoredForm(WhateverMyFormsNameIs)
> End Sub
>
> Do I call it from my main form that I want to keep maximized? What
> parameter do I put in there? It doesn't seem to want my forms name either
> with or without quotes, and it doesn't like Me (the object, not the

person).
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DoCmd.Maximize mraccess Microsoft Access Forms 1 13th Jun 2008 06:21 PM
Re: DoCmd.Maximize Graham Mandeno Microsoft Access Form Coding 0 17th Jan 2007 09:37 PM
Forms DoCmd.Maximize | DoCmd.Restore Tom Microsoft Access Forms 6 27th Jul 2004 06:57 PM
docmd.sendobject alternatives Silvester Microsoft Access 1 22nd May 2004 02:15 PM
docmd.sendobject alternatives Silvester Microsoft Access Form Coding 1 22nd May 2004 02:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:29 AM.