BUG: Procedures Continue When Application EndsLast reviewed: February 6, 1998Article ID: Q180627 |
The information in this article applies to:
SYMPTOMSIf a form is unloaded by clicking the "X" on the form title bar while a message box is being displayed, the procedure that displayed the message box continues executing while the application unloads. The application still unloads, but there may be visual indications that the code is still being executed, such as other message boxes being displayed and dismissed.
RESOLUTIONTo avoid this problem, disable the form before showing the message box. You should also call the Show method of the form to prevent it from being minimized, as shown in the following sample:
Private Sub Command1_Click() Form1.Enabled = False MsgBox "You're unable to click 'x' now" Form1.Show MsgBox "I should appear" Form1.Enabled = True Form1.Show End Sub STATUSMicrosoft 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.
MORE INFORMATION
Steps to Reproduce Behavior
Keywords : vb5all vbce Version : WINDOWS:1.0 Platform : WINDOWS Issue type : kbbug Solution Type : kbpending |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |