I am doing an application a Windows Form application. At first, a certain form appears, and after the user hits the next button, this form should be hidden and another form
private void button5_Click(object sender, EventArgs e) { this.Visible = false; Form2 login = new Form2(); login.ShowDialog(); }