private void button3_Click(object sender, EventArgs e) { pay newMDICheild = new pay(); newMDICheild.MdiParent = this.MdiParent; // Display the new form. newMDICheild.Show(); }
private void toolStripButton7_Click(object sender, EventArgs e) { if (acc_code != null) { pay newMDICheild = new pay(); newMDICheild.MdiParent = this.MdiParent; // Display the new form. newMDICheild.WindowState = System.Windows.Forms.FormWindowState.Normal; newMDICheild.Show(); } else { MessageBox.Show("Лицевой счет не выбран"); } }