C#怎么编一个退出程序

2025-03-18 17:07:58
推荐回答(1个)
回答1:

你可以在登录成功程序段中加入:
this.Hide();
不过通常应该采用在下面这句话中运行主窗口的方法
Application.Run(new
Form2());