public bool CheckMdi(string formName)
{
bool state = false;
foreach (Form tempForm in this.MdiChildren)
{
if (tempForm.Name.ToLower() == formName.ToLower())
{
if (tempForm.WindowState == FormWindowState.Minimized)
tempForm.WindowState = FormWindowState.Normal;
tempForm.Activate();
return true;
}
else
{
return false;
}
}
return state;
}
文章来源:
http://www.cnblogs.com/wangdetian168/archive/2008/09/06/1285685.html
posted on 2010-09-29 13:28
sanmao 阅读(118)
评论(0) 编辑 收藏