private void dataQuery_Click(object sender, EventArgs e) { if (this.checkChildFrmExist("数据查询") == true) { return; } DataQuery.frmDataQuery frm = new frmDataQuery(); frm.MdiParent = this; frm.Text = "数据查询"; frm.Show(); }
private void Form1_Load(object sender, EventArgs e) { DataQuery.frmDataQuery frm = new frmDataQuery(); frm.MdiParent = this; frm.Show(); }