本文介绍了无法在WinForms中处置Form1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有form1和form2.
每当登录(form1)成功时,我将导航到form2,然后在导航到form2之前试图关闭form1,这没有发生.我不确定这里缺少什么.
i have form1 and form2.
when ever the logins (form1) succeed then i will navigate to form2,before navigate to form2 am trying to close form1,that''s not happening.am not sure what am missing here.
Login logform = new Login();
logform.Dispose();
//i tried logform.close(), and this.close() (throwing error)
//Login successful then navigate to Form2.
DbNavigate.frmDataGridPaging form = new DbNavigate.frmDataGridPaging();
form.ShowDialog(this);
谢谢Advance
thanks in Advance
推荐答案
this.close()
//Login successful then navigate to Form2.
DbNavigate.frmDataGridPaging form = new DbNavigate.frmDataGridPaging();
form.ShowDialog(this);
这篇关于无法在WinForms中处置Form1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!