private void paymentsToolStripMenuItem_Click(object sender, EventArgs e) { Doctor.DrPayment newdrPayment = new Doctor.DrPayment(); newdrPayment.MdiParent = this; newdrPayment.FormBorderStyle = FormBorderStyle.None; newdrPayment.ControlBox = false; newdrPayment.MaximizeBox = false; newdrPayment.MinimizeBox = false; newdrPayment.Dock = DockStyle.Fill; newdrPayment.Show(); }
public void InvDrPayment() { Doctor.DrPayment newdrPayment = new Doctor.DrPayment(); newdrPayment.MdiParent = Application.OpenForms["DoctorDash"]; newdrPayment.FormBorderStyle = FormBorderStyle.None; newdrPayment.ControlBox = false; newdrPayment.MaximizeBox = false; newdrPayment.MinimizeBox = false; newdrPayment.Dock = DockStyle.Fill; newdrPayment.Show(); }