c#winform点击菜单时只显示一个子窗体,并把子窗体放在panel1里
boolopened=false;foreach(FormfinApplication.OpenForms){if(fisfrmClientdata){opened=tr...
bool opened = false;
foreach (Form f in Application.OpenForms)
{
if (f is frmClientdata)
{
opened = true;
break;
}
}
if (!opened)
new frmClientdata().Show();
这是只显示一个子窗体,要怎么改? 展开
foreach (Form f in Application.OpenForms)
{
if (f is frmClientdata)
{
opened = true;
break;
}
}
if (!opened)
new frmClientdata().Show();
这是只显示一个子窗体,要怎么改? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询