Microsoft KB Archive/189992

= BUG: Line Displays in Title Bar of MDI Child Form =

Article ID: 189992

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q189992



SYMPTOMS
An MDI Child form with a border style set to 5-Sizable ToolWindow appears with a thin line below the Toolbar. The line does not repaint when another window is moved over the MDI Child form.



RESOLUTION
Toggle the form height by adding the following code to the Form_Load event of the MDI Child form: Me.Height = Me.Height - 15 Me.Height = Me.Height + 15



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior
 Start a new Standard EXE project in Visual Basic. Form1 is created by default. Add an MDI Child Form to the project by completing the following steps:

 From the Project menu, select Add MDI Form. The Add MDI Form dialog box appears with MDI Form highlighted in the New tab. Click the Open button to add an MDI Form, MDIForm1, to the project.   Set the following properties for Form1: <pre class="fixed_text">     Property            Setting

MDIChild           True

BorderStyle        5-Sizable ToolWindow </li> On the Run menu, select Start, or press the F5 key to start the program.

NOTE: A gray line appears below the title bar of the MDI Child window. If you move another window on top of this MDI Child window, the gray line does not repaint.</li>  Stop the project and add the following code to the code window of Form1: Private Sub Form_Load Me.Height = Me.Height - 15 Me.Height = Me.Height + 15 End Sub </li> Run the project again and note that the gray line has disappeared.</li></ol>

Additional query words: kbDSupport kbDSD kbVBp kbVBp600bug kbMDI

Keywords: kbbug KB189992

-

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

© Microsoft Corporation. All rights reserved.