private void button5_Click(object sender, EventArgs e) { UploadExcelParkingDetails upload = new UploadExcelParkingDetails(); upload.MdiParent = this.ParentForm; upload.Show(); this.Hide(); }
private void uploadParkingToolStripMenuItem_Click(object sender, EventArgs e) { foreach (Form form in Application.OpenForms) { if (form.GetType() == typeof(UploadExcelParkingDetails)) { form.Activate(); return; } } UploadExcelParkingDetails upload = new UploadExcelParkingDetails(); upload.MdiParent = this; upload.Show(); }
private void BtnUploadDetails_Click(object sender, EventArgs e) { UploadExcelParkingDetails upload = new UploadExcelParkingDetails(); upload.ShowDialog(); }