Microsoft KB Archive/93013

= Minimizing an Invisible VB MDI Form Saves a Section for Itself =

PSS ID Number: 93013

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 Q93013



SYMPTOMS
When you minimize a regular form that has its Visible property set to false on a MDI form, you may see a section set aside for the location where the minimized form would be displayed on the MDI form if the Visible property was previously set to true. The Microsoft Visual Basic for MS-DOS programming system marks a location on a MDI form where a minimized form would be located. The problem is that the system does not check the value of the Visible property to see if it is set to true or not.



STATUS
Microsoft has confirmed this to be a bug in the Standard and Professional Editions of Microsoft Visual Basic for MS-DOS, version 1.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
The following steps can be used to reproduce this problem:

 Start VBDOS.EXE. Select New Form... from the File menu (Form1.FRM). Once inside the FD.EXE environment, set Form1's FormType property to MDI. Select the New Form. From the File Menu two more times for (Form2.FRM and Form3.FRM). Save the files and exit FD.EXE.  Add the following code to the Form_Load event procedure of the MDI form, Form1: Sub Form_Load SHOW             ' Shows the M.

DI form Form2.SHOW Form3.SHOW Form2.Visible = False  ' Const False = 0. Form2.WindowState = 1  ' Minimized. Form3.WindowState = 1  ' Minimized. End Sub </li> Press the F5 key to run.</li> You should see Form3 displayed minimized toward the center of Form1, as though a section was set aside for room to display the minimized Form2.</li></ol>

Additional query words: VBmsdos BugList1.00 1.00

Keywords: KB93013

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

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

© 2004 Microsoft Corporation. All rights reserved.