change active form to show another form

前端 未结 4 1618
旧巷少年郎
旧巷少年郎 2020-12-17 05:24

I have a Form1 and another one that I added. Form1 is being run by program.cs at the start. I need to hide Form1 and show option

4条回答
  •  余生分开走
    2020-12-17 06:17

    Hide current form using this.Close() before showing new one and make sure you are using parameterless Application.Run so program won't close when you close it's main form.

提交回复
热议问题