Hiding a form and showing another when a button is clicked in a Windows Forms application

后端 未结 6 1420
遥遥无期
遥遥无期 2020-12-14 13:06

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

6条回答
  •  不思量自难忘°
    2020-12-14 13:24

    private void button5_Click(object sender, EventArgs e)
    {
        this.Visible = false;
        Form2 login = new Form2();
        login.ShowDialog();
    }
    

提交回复
热议问题