private void 客户信息报表ToolStripMenuItem_Click(object sender, EventArgs e)
{ foreach (Form child_form in this.MdiChildren)
{
if (child_form.Name == "khxx")
{
child_form.Visible = true;
if (child_form.WindowState == FormWindowState.Minimized)
{
child_form.WindowState = FormWindowState.Normal;
}
child_form.Activate();
return;
}
}
khxx kh_xx = new khxx();
kh_xx.MdiParent = this;
kh_xx.WindowState = FormWindowState.Maximized;
kh_xx.Show();
}
出现错误:错误 1 “JinXiaoCun.khxx”并不包含“MdiParent”的定义
错误 2 “JinXiaoCun.khxx”并不包含“WindowState”的定义
错误 3 “JinXiaoCun.khxx”并不包含“Show”的定义
{ foreach (Form child_form in this.MdiChildren)
{
if (child_form.Name == "khxx")
{
child_form.Visible = true;
if (child_form.WindowState == FormWindowState.Minimized)
{
child_form.WindowState = FormWindowState.Normal;
}
child_form.Activate();
return;
}
}
khxx kh_xx = new khxx();
kh_xx.MdiParent = this;
kh_xx.WindowState = FormWindowState.Maximized;
kh_xx.Show();
}
出现错误:错误 1 “JinXiaoCun.khxx”并不包含“MdiParent”的定义
错误 2 “JinXiaoCun.khxx”并不包含“WindowState”的定义
错误 3 “JinXiaoCun.khxx”并不包含“Show”的定义
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货