What's the recommended way to open a new form and close the current/first form?

后端 未结 3 1871
不思量自难忘°
不思量自难忘° 2021-01-29 11:02

I\'m building an application that have a initial form for login and if the user is authorized this form (login) should close and the application main form should open.

I

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-29 11:20

    This is how you do it:

    FormSecond f = new FormSecond();
    f.Show();
    this.Close();
    

提交回复
热议问题