No Resize Event When Maximize MDI Child

ID: Q94835


The information in this article applies to:
  • Microsoft Visual Basic Standard and Professional Editions for MS-DOS, version 1.0


SYMPTOMS

Maximizing a Multiple Document Interface (MDI) child form whose Width property value is identical to the parent form's ScaleWidth value does not cause the Resize event as it should.


STATUS

Microsoft has confirmed this to be a bug in both the Standard and Professional Editions of Microsoft Visual Basic version 1.0 for MS-DOS. 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 Problem

  1. Start VBDOS.EXE.


  2. From the File menu, choose New Form.


  3. Change the FormType property of the form to 1 - MDI.


  4. From the File menu, choose New Form.


  5. Change the AutoRedraw property of the from to True.


  6. From the File menu, choose Exit, and save all changes.


  7. Add the following code to the Form_Load event procedure of Form1 (the MDI parent form):
    
          Sub Form_Load ()
             Form1.Show
             Form2.Show
             Form2.Left = 0
             Form2.Width = Form1.ScaleWidth
          End Sub 


  8. Add the following code to the Form_Resize event procedure of Form2 (the MID child form):
    
          Sub Form_Resize ()
             Print "RESIZE"
          End Sub 


  9. Now run the program. The child form fits snugly inside the parent form and RESIZE appears twice.


  10. Click the Maximize arrow to maximize Form2. The word RESIZE does not print a third time as it should.


Additional query words: VBmsdos buglist1.00 1.00

Keywords :
Version : MS-DOS:1.0
Platform : MS-DOS
Issue type :


Last Reviewed: December 10, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.