private void btnOk_Click(object sender, EventArgs e) { FrmReport frm = new FrmReport(); frm.reportName = "xraysummary"; frm.setRptXraySummaryView(dtpStart.Value, dtpEnd.Value); frm.Show(this); }