BUG: Closing a Child Form Causes an Application ErrorLast reviewed: October 3, 1996Article ID: Q149488 |
The information in this article applies to:
SYMPTOMSClosing a child form with a multiple-document interface, or MDI, through the Control box or Close button causes an application error in a Visual Basic program running under Windows 95. This behavior occurs only if the child form contains a Combo box with the Style property set to 1 - Simple Combo.
STATUSMicrosoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. Microsoft is researching this issue and will post new information here in the Microsoft Knowledge Base as it becomes available.
WORKAROUNDTo work around this issue, close the form using the Unload statement in an event such as a click event of a command button or a menu item. To prevent the application error, use the following code in the Query_Unload event of the MDI child with the combo box:
Private Sub Query_Unload(Cancel As Integer, UnloadMode As Integer) If UnloadMode = vbFormControlMenu Then Cancel = True End If End Sub MORE INFORMATION
Steps to Reproduce Behavior
|
Additional reference words: 4.00 vb4win vb4all
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |