FIX: Form Activate Event May Not Fire as Expected |
Q180760
Form Activate events may not fire correctly after a form is closed and then reopened.
Remove ControlMenus, MinButtons, and MaxButtons from all forms (set their properties to False), and use menu or command button code to close forms.
Microsoft has confirmed this to be a problem in the Microsoft products that are listed
at the beginning of this article.
This problem was corrected in Windows CE Toolkit for Visual Basic 6.0.
The problem is difficult to reproduce. It only occurs when a form is closed
using the Control Menu or Window Close buttons (upper-right corner), and
then reopened while the application continues to run.
NOTE: This problem does not occur when the Hide and Show method are used tonavigate among forms.
Private Sub Command1_Click()
Form2.Show
End Sub
Private Sub Command1_Click()
Form1.Show
End Sub
Private Sub Form_Activate()
MsgBox "Form2 is activated"
End Sub Additional query words: vbce5 vbce6 vbce
Keywords : kbToolkit kbVBp kbVBp500bug kbVBp600fix kbOSWinCEsearch kbOSWinCE100 kbGrpDSVB
Issue type : kbbug
Technology : kbVBSearch kbAudDeveloper kbWinCETKVBSearch kbWinCESearch kbWinCETK100VB500
|
Last Reviewed: February 28, 1999 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |