There are a number of solutions, but one that I would suggest is to ensure that Form1 is set as the actual startup form, and then in it's form load method have something like this:Hide();LoginForm otherForm = new LoginForm();otherForm.ShowDialog();if(otherForm.Success){ Show();}else{ Close();} 这篇关于如何关闭当前窗体并同时打开另一个窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-23 13:14