private void btnGeneralReporte_Click(object sender, EventArgs e) { frmReportedeNotas pR = new frmReportedeNotas(); pR.fechaD = dtpDesde.Value.Date; pR.fechaH = dtpHasta.Value.Date; pR.ShowDialog(); }
private void dtpHasta_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == Convert.ToChar(Keys.Enter)) { frmReportedeNotas pR = new frmReportedeNotas(); pR.fechaD = dtpDesde.Value.Date; pR.fechaH = dtpHasta.Value.Date; pR.ShowDialog(); } }