PRB: Form_Initialize Event Does Not Fire in VBCE

ID: Q250474


The information in this article applies to:
  • Microsoft Windows CE Toolkit for Visual Basic 6.0


SYMPTOMS

In Microsoft Windows CE Toolkit for Visual Basic 6.0 (VBCE), 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, HPC/Pro, or PsPC Project in VBCE. Form1 is created by default.


  2. Add the following code in Form1's code module:


  3. 
    Private Sub Form_Initialize()
        MsgBox "Initialize Event"
    End Sub 
  4. Press the F5 key to run the program and note that the message box does not appear when the application executes.


Additional query words: wince vbce vbce6

Keywords : kbToolkit kbVBp600 kbWinCE100 kbGrpVB
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: January 31, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.