In Visual studio, I want it to open another form first when I debug, how do I do this?

visual-studio-2012

Solution

You did not say which language you are using so I will give you examples in C# and VB.net

In C# you have a `Program.cs` file you can edit the `Application.Run` statement to change your startup form:

static class Program
{
    /// <summary>
    /// The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main()
    {
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);
        Application.Run(new Form1()); // Change this to your Startup Form's Name.
    }
}

It is located in your Solution Explorer.

if VB.net you can change the Startup form in Project Property's

If neither of these are what you are looking for please edit your question with more information on what you are trying to do, what you tried what language you are using etc.

Problem

I've made a mistake on my coursework and I need to change it so VS opens another form when I debug it Can someone be nice enough to help me do this? For example, right now it's going straight into Employee Login when I need it to open a startup page first.. How do I do this? Would appreciate help thanks.

Original source