FIX: Form Activate Event May Not Fire as ExpectedID: 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 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 kbWinCE kbWinCE100 kbGrpVB
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: February 25, 1999