MDI winfrom 如何实现打开一窗口就关闭前面打开的窗口呢? MDI winfrom 如何实现点击一按钮打开一窗口同时关闭前面打开的窗口呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 private void button1_Click(object sender, EventArgs e) { Control parentForm = this.Parent; //Form1 f1 = new Form1(); //f1.IsMdiContainer = true; childChild cc = new childChild(); cc.TopLevel = false; cc.Parent = parentForm; cc.Show(); this.Close(); } 估计MDI容器他已经弄好了。所以... public Form1() { InitializeComponent(); this.IsMdiContainer = true; mdiChild mc = new mdiChild(); mc.TopLevel = false; mc.Parent = this; mc.Show(); } 关于编写打印服务 C#调用JS问题 WF的问题 WinForm 读取word内容 并判断表格问题 急 在线等!!! 分不够 可以再加 如何在一个窗体中关闭指定的窗体 Response使用 我怎么调用不了,大家帮我看看 又一C#问题 如何使用ADO.NET进行批量插入、修改、删除 快被搞疯了。 ERP 中的期初订单模块如何实现 如何通过数据库某个表中的某列的信息来查询出这一行的所有信息并且显示出来
private void button1_Click(object sender, EventArgs e)
{
Control parentForm = this.Parent;
//Form1 f1 = new Form1();
//f1.IsMdiContainer = true;
childChild cc = new childChild();
cc.TopLevel = false;
cc.Parent = parentForm;
cc.Show();
this.Close();
}
{
InitializeComponent();
this.IsMdiContainer = true;
mdiChild mc = new mdiChild();
mc.TopLevel = false;
mc.Parent = this;
mc.Show();
}