FIX: Maximized Win95 MDI Child Form Disappears
ID: Q145619
|
The information in this article applies to:
-
Microsoft Visual Basic Standard, Professional, and Enterprise Editions, 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. This problem has been fixed in Microsoft Windows 98.
MORE INFORMATION
Steps to Reproduce Behavior
- Start Visual Basic 4.0, 32-bit. If it is already running, click New
Project on the File menu.
- Use the Insert/MDI Form menu option to add an MDIForm to the project.
- 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.
- 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
- Run the application. Form1 will be visible.
Additional query words:
kbVBp400bug kbWinOS98fix kbVBp500bug kbDSupport kbdsd
Keywords : kbGrpVB
Version : 4.00
Platform : NT WINDOWS
Issue type : kbbug