Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
private void GameForm_FormClosed(object sender, FormClosedEventArgs e) { infform.Show(); }
GameForm 还有另一种形式,通知。表单关闭时不会显示。这里有什么问题吗?
要记住的一件事......当你的主form关闭时,整个应用程序都会退出。如果你想赶上那个事件,你可以注册到Application.ApplicationExit。
form
Application.ApplicationExit
每当Application退出时都会触发此事件。
Application
这有帮助吗?
private void GameForm_FormClosing(object sender, FormClosingEventArgs e) { this.Hide(); infform.ShowDialog(); }