ACC: Resize Event Fires When Changing Form FocusID: Q155135
|
Moderate: Requires basic macro, coding, and interoperability skills.
When you switch the focus away from a form in a Microsoft Access
database, the Resize event fires unexpectedly for the form losing focus.
The form losing focus is maximized and you are changing focus to another maximized object. All multiple-document interface (MDI) objects that do not have focus are automatically restored to a windowed state behind the maximized MDI form that has focus. When the current form loses focus, Windows automatically restores it to a windowed state, causing the Resize event to occur.
The Windows MDI behavior is by design.
The Resize event of a form fires whenever a change occurs that affects
the size of a form:
Form: Test1
-----------------
Caption: TestForm
Private Sub Form_Resize()
MsgBox "The Resize Event Fired for " & Me.Name
End Sub
The Resize Event Fired for Test1
The Resize Event Fired for Test1
The Resize Event Fired for Test1
For more information about the behavior of maximized forms in Microsoft
Access, please see the following articles in the Microsoft Knowledge
Base:
Q147152 ACC: Maximizing One Form Maximizes All Forms (7.0/97)
Q121410 ACC: Maximizing One Form Maximizes All Forms
For more information about using custom form properties to expose the
Maximize and Minimize status of forms in Microsoft Access 7.0 and 97
please see the following article in the Microsoft Knowledge Base:
Q141111 ACC: How to Determine If a Form Is Maximized or Minimized
Keywords : FmsProb
Version : 2.0 7.0 97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 28, 1999