主窗体里,生成调用了一个子窗体,
这段代码去掉,
主窗体里该控件又可用了,private void frmMain_Load(object sender, System.EventArgs e)
{
if( this.IsLogin == false)
{
cfrmLogin = new frmLogin();
cfrmLogin.frmParent = this;
cfrmLogin.ShowDialog();
                this.OleConn = new OleDbConnection(cfrmLogin.OleConn.ConnectionString);  //传递login界面的数据库连接
                cfrmLogin.Close();
}
if(this.IsLogout == true)
{
this.Close();
}
}
这段代码注释掉就可以了,请问,这段代码有什么问题?