BUG: Maximized Win95 MDI Child Form Disappears

Last reviewed: January 16, 1997
Article ID: Q145619
The information in this article applies to:
  • Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, 32-bit only, for Windows, version 4.0

SYMPTOMS

Under certain circumstances, a maximized MDI child form is invisible and cannot be made visible. The problem occurs under Windows 95 and Windows NT 4.0 only when using the 32-bit version of Visual Basic 4.0.

RESOLUTION

When the MaxButton property of Form1 is set to true, the problem does not occur.

STATUS

Microsoft has confirmed this to be an issue in Microsoft Windows 95 and Windows NT 4.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Start Visual Basic 4.0, 32-bit. If it is already running, click New Project on the File menu.

  2. Use the Insert/MDI Form menu option to add an MDIForm to the project.

  3. In the Design Environment Property window, set the following properties for Form1:

    MinButton = False MaxButton = False ControlBox = False

       MDIChild    = True
       WindowState = 0 - Normal
       Caption =
       Borderstyle = 0 - None    'Options 1 - 5 will also work.
    
    

  4. In the General Declaration section of Form1, paste the following:

           Private Sub Form_Load()
    
       'You could copy the following 4 lines to the Resize
       'event of MDIForm1 as well for best results.
       Form1.Top = 0
               Form1.Left = 0
       Form1.Width = MDIForm1.Width - 185
       Form1.Height = MDIForm1.Height - 470
           End Sub
    
    

  5. Run the application. Form1 will be visible.


KBCategory: kbprg kbbuglist
KBSubcategory: PrgOther
Additional reference words: 4.00 vb4win vb432


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.