Microsoft KB Archive/250474

= PRB: Form_Initialize Event Does Not Fire in VBCE =

Article ID: 250474

Article Last Modified on 9/4/2002

-

APPLIES TO


 * Microsoft Windows CE Toolkit for Visual Basic 6.0
 * Microsoft eMbedded Visual Basic 3.0

-



This article was previously published under Q250474



SYMPTOMS
In Microsoft Windows CE Toolkit for Visual Basic 6.0 (VBCE) and eMbedded Visual Basic 3.0 (eVB), the Initialize event of a form does not fire. This occurs in the emulation environment and on the remote devices.



RESOLUTION
To work around this behavior, move code from the Initialize event into the Load event.



Steps to Reproduce Behavior
 Start a new Windows CE HPC PRO Project in VBCE or eVB. Form1 is created by default.  Add the following code in Form1's code module: Private Sub Form_Initialize MsgBox "Initialize Event" End Sub  Press the F5 key to run the program and note that the message box does not appear when the application executes.

Keywords: kbtoolkit kbprb KB250474

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.