BUG: Closing a Form with Control Box "X" Only Hides FormLast reviewed: February 10, 1998Article ID: Q180773 |
The information in this article applies to:
SYMPTOMSClosing a form with the control box "X" only hides the form. When showing the form a second time, values that that may have been changed on the form are not reset as you would expect. Properties that may have changed (including the form caption, text in textboxes, window position, and the hwnd of the form) remain the same. Although it can seem to be a related issue, it is important to note that in Visual Basic, it is expected behavior for form level variables to remain in memory when a form is closed using the control box "X."
RESOLUTIONThe workaround is to include code to re-initialize the form in the form load event, which does fire when the form is re-shown after being closed via the control box "X."
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. |