//on Click function.delete the report and close this child form protected void cancelReport() { UserAddReport listFormChild = new UserAddReport(Email, PasswordHash); listFormChild.MdiParent = ParentForm; listFormChild.FormBorderStyle = FormBorderStyle.None; listFormChild.Dock = DockStyle.Fill; listFormChild.Show(); }
//on Click function. in the empty space of the page show the child form which show the reporta made by the user private void ShowReportForm(object sender, EventArgs e) { UserAddReport reportFormChild = new UserAddReport(this.Email, this.PassHash); reportFormChild.MdiParent = this; reportFormChild.FormBorderStyle = FormBorderStyle.None; reportFormChild.Dock = DockStyle.Fill; reportFormChild.Show(); }