How to set the Startup Project in VB6


Can you set the startup Project in the Visual Basic 6 IDE?

I looked all through the Settings and can't find a way to do it.

Best Solution

Dave and OneDayWhen are correct in saying that you need to right click the desired project in the IDE and select Set as Start Up when you have multiple projects loaded and you want to choose which one is executed.

Anyone know how I can set the VB6 IDE to load either the last project loaded or change the default one loaded?

Copy the Icon change the target to something like

"C:\Program Files\Microsoft Visual Studio\VB98\VB6.EXE" "D:\MyProjects\MyOneProject\trunk\MyOneProject.vbp"

Change Startup In to D:\MyProjects\MyOneProject\trunk

I found it more just to change the StartupIn to my Master Project Directory rather than have icons for specific project. Like D:\MyProjects

Rob Conley

P.S. In case you are wondering on why you would ever select a non-EXE project as startup. You do this at times when you are debugging a non-EXE. When you startup a non-EXE you have several options. Among them you can fire up a application,or have sit there until something calls it. Useful when you are debugging a Active DLL or Control and using Excel or another 3rd party software that you don't have the source too.