Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Must have Startup form or SubMain()?? 1

Status
Not open for further replies.

112055

Programmer
May 13, 2002
61
US
Hello,
I am converting VB3 application to VB6. When I tried to open the application it says "Must have Startup form or subMain()". Can anyone tell me what or how to correct this?
I am learning VB as I go, I do not mind if you tell me the detail way.

many thanks,
Ann
 
You need to designate which form is the first to open when your project starts.

Select "Project" from the main menu, and then at the bottom of that menu select "projectname" Properties.

In the window that opens, there is a drop down combo labeled "Startup Object". Select your startup form from the list in the combo box.

If your project starts a "sub Main" subroutine instead of a form, then select that instead.

Click OK and then try to run your project.

HTH

Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top