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
- 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.
- 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
- Add the following code to the Form_Resize event procedure of Form2 (the
MID child form):
Sub Form_Resize ()
Print "RESIZE"
End Sub
- Now run the program. The child form fits snugly inside the parent form
and RESIZE appears twice.
- 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 :