如何在winform中关闭登录窗体后打开主窗体

如题所述

[STAThread]
static void Main()
{
//登录
frmlogin frm1=new frmlogin();
if(frm1.ShowDialog() != DialogResult.OK)
{
return;
}
Application.Run(new frmMain());
}
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答