protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { switch (keyData) { case Keys.Escape: this.Close(); return(true); case Keys.Enter: Cash(); return(true); case Keys.D: return(true); case Keys.F1: Form frmToday = new frmToday(); frmToday.ShowDialog(); return(true); default: return(base.ProcessCmdKey(ref msg, keyData)); } }
private void btnReportToDay_Click(object sender, EventArgs e) { frmToday frm = new frmToday(); openWindow(frm, frm.Name); }