Microsoft KB Archive/93013

From BetaArchive Wiki
Knowledge Base

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


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.


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.


The following steps can be used to reproduce this problem:

  1. Start VBDOS.EXE.
  2. Select New Form... from the File menu (Form1.FRM).
  3. Once inside the FD.EXE environment, set Form1's FormType property to MDI.
  4. Select the New Form. From the File Menu two more times for (Form2.FRM and Form3.FRM).
  5. Save the files and exit FD.EXE.
  6. 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.Visible = False   ' Const False = 0.
             Form2.WindowState = 1   ' Minimized.
             Form3.WindowState = 1   ' Minimized.
          End Sub
  7. Press the F5 key to run.
  8. 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.

Additional query words: VBmsdos BugList1.00 1.00

Keywords: KB93013
Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3