private void button2_Click(object sender, EventArgs e) { OfficeMas officeMas = new OfficeMas(""); officeMas.MdiParent = this.MdiParent; officeMas.Dock = DockStyle.Fill; officeMas.StartPosition = FormStartPosition.CenterParent; officeMas.Show(); }
private void button1_Click(object sender, EventArgs e) { OfficeMas frmpayment = new OfficeMas(""); //String s=frmpayment.Text; //if (!CheckForm(frmpayment)) { frmpayment.MdiParent = this; frmpayment.Dock = DockStyle.Fill; frmpayment.Show(); } }