PRB: Form_Initialize Event Does Not Fire in VBCE (250474)



The information in this article 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.

MORE INFORMATION

Steps to Reproduce Behavior

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

Modification Type:MajorLast Reviewed:9/4/2002
Keywords:kbprb kbToolkit KB250474 kbAudDeveloper