Microsoft KB Archive/94835

= No Resize Event When Maximize MDI Child =

PSS ID Number: 94835

Article Last Modified on 1/8/2003

-

The information in this article applies to:


 * Microsoft Visual Basic for MS-DOS 1.0

-



This article was previously published under Q94835



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.



Steps to Reproduce Problem
 Start VBDOS.EXE. From the File menu, choose New Form. Change the FormType property of the form to 1 - MDI. From the File menu, choose New Form. Change the AutoRedraw property of the from to True. From the File menu, choose Exit, and save all changes.</li>  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 </li>  Add the following code to the Form_Resize event procedure of Form2 (the MID child form): Sub Form_Resize Print &quot;RESIZE&quot; End Sub </li> Now run the program. The child form fits snugly inside the parent form and RESIZE appears twice.</li> Click the Maximize arrow to maximize Form2. The word RESIZE does not print a third time as it should.</li></ol>

Additional query words: VBmsdos buglist1.00 1.00

Keywords: KB94835

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.