Search code examples
vb.netwinformsvisual-studio-2010startup

How to change which form opens when starting a program in VB.net


I created a Windows Forms project in VB.net and I have decided to add another form to appear before Form1. How can I make a different form appear on start up instead of Form1?

enter image description here


Solution

  • To set the startup form in Windows Forms:

    In Solution Explorer, right-click the project and choose Properties.

    The Project property page opens with the General properties displayed.

    Choose the form you want as the startup form from the Startup Object drop-down list.