A startup form has not been specified

 

Updated: July 20, 2015

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

The application uses the WindowsFormsApplicationBase class but does not specify the startup form.

This can occur if the Enable application framework check box is selected in the project designer but the Startup form is not specified. For more information, see Application Page, Project Designer (Visual Basic).

To correct this error

  1. Specify a startup object for the application.

    For more information, see Application Page, Project Designer (Visual Basic).

  2. Override the OnCreateMainForm method to set the MainForm property to the startup form.

WindowsFormsApplicationBase
OnCreateMainForm
MainForm
Overview of the Visual Basic Application Model

Show: