Microsoft KB Archive/250474

From BetaArchive Wiki

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.

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.


Keywords: kbtoolkit kbprb KB250474