PRB: Errors in Regular Project After Using VBCE Toolkit

ID: Q195256


The information in this article applies to:


SYMPTOMS

When you try to run a regular (non-VBCE) project after working on Windows CE Toolkit for Visual Basic (VBCE) projects, the following error might occur:

Before it can be compiled, the Project must have a Startup Object specified. Go to the Project Properties dialog to specify the Object.


RESOLUTION

There are two ways to avoid the error:


MORE INFORMATION

The error described above occurs when a regular Visual Basic project, either new or existing, is opened after a VBCE project has been opened in the same session of the Visual Basic integrated design environment (IDE). The error indicates incorrectly that a Startup Object has not been specified.

Closing and reopening the design environment clears internal references to the VBCE toolkit and prevents the error.

Steps to Reproduce Behavior

  1. Open an existing VBCE project in Visual Basic.


  2. Open a new standard EXE project, closing the VBCE project.


  3. On the default Form1, add a CommandButton.


  4. Add the following code to the CommandButton Click event procedure:
    
    MsgBox "OK" 


  5. Run the project by clicking the Start button on the toolbar. The error message described above is displayed even though the Startup Object for the new project is Form1.



REFERENCES

Books Online for the Microsoft Windows CE Toolkit for Visual Basic 5.0

Additional query words: wce wince vbce vbce5


Keywords          : kbide kbToolkit kbVBp500 kbWinCE100 kbGrpVB 
Version           : WINDOWS:1.0,5.0
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: February 10, 1999