摘要:
private frmChannelInfo myChannelInfo = null; private void tsbChannelInfo_Click(object sender, EventArgs e) { if (myChannelInfo != null && myChannelInfo.Created) { myChannelInfo.Focus(); return; } myChannelInfo = new frmChannelInfo(); myChannelInfo.MdiParent = this; myChannelInfo.Show(); } 阅读全文
摘要:
一、参照自带例子做个mdi窗体1、加入父窗体MainForm,并加入一个菜单栏,new form1 form2 windows2、给new加命令private int childFormNumber = 0;private void newToolStripMenuItem_Click(object sender, EventArgs e) { Form childForm = new Form();//创建一个子窗体 childForm.MdiParent = this;//这一句很重要 childForm.Text = "窗口" + childFormNumber++; 阅读全文