PC Review


Reply
Thread Tools Rate Thread

Minimizing/Maximizing Forms

 
 
=?Utf-8?B?UGxheWE=?=
Guest
Posts: n/a
 
      2nd Dec 2004
When I have a form open and I maximize it all other forms will now maximize
and when you open a new form it will also be maximized. Is there somehow a
way to make it that when you maximize your current form no other forms will
be affected?
 
Reply With Quote
 
 
 
 
Marshall Barton
Guest
Posts: n/a
 
      2nd Dec 2004
Playa wrote:

>When I have a form open and I maximize it all other forms will now maximize
>and when you open a new form it will also be maximized. Is there somehow a
>way to make it that when you maximize your current form no other forms will
>be affected?



No, that's the way the windows user interface works.

You could change the size of your form to take up most of
the available space without actually maximizing it. There
may be a better way to do it, but I had a play with this and
it seemed acceptable to me:

Dim lngMaxWidth As Long, lngMaxHeigth As Long

DoCmd.Echo False
DoCmd.Maximize
lngMaxWidth = Me.InsideWidth
lngMaxHeigth = Me.InsideHeight
DoCmd.Restore
DoCmd.MoveSize 0, 0, lngMaxWidth, lngMaxHeigth
DoCmd.Echo True

Be sure to integrate that into your error handling to
guarantee that Echo True will always be executed.

--
Marsh
MVP [MS Access]
 
Reply With Quote
 
 
 
 
Graham Mandeno
Guest
Posts: n/a
 
      2nd Dec 2004
Unfortunately, because Access uses an MDI client window (like Word and
Excel) the maximized state applies to all child windows.

What you can do is, for the form you want maximized, add event procedures
for the Activate and Deactivate events. In Form_Activate, do a
DoCmd.maximize, and in Form_Deactivate put DoCmd.Restore.
--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

"Playa" <(E-Mail Removed)> wrote in message
news:57ED4D48-26B7-41FD-AE1B-(E-Mail Removed)...
> When I have a form open and I maximize it all other forms will now
> maximize
> and when you open a new form it will also be maximized. Is there somehow
> a
> way to make it that when you maximize your current form no other forms
> will
> be affected?



 
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
I have a million questions - forms, forms, forms Cristy Microsoft Outlook Form Programming 1 1st Oct 2008 06:41 PM
Windows Forms - Opening forms within forms Dan Tallent Microsoft C# .NET 20 27th Aug 2008 06:25 PM
How to put my own forms in the "Personal Forms Library" or in the toolbar Marco J.L. Microsoft Outlook 1 21st Jul 2004 03:33 PM
Calling Forms from Forms - Exit problems Stuart Microsoft Excel Programming 3 25th May 2004 06:50 AM
Publishing forms to Organizational Forms RB Microsoft Outlook 0 25th Feb 2004 07:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:12 AM.