protected override bool ProcessDialogKey(Keys keyData) { if (keyData == Keys.Escape) { DialogResult = DialogResult.Cancel; this.Close(); return(true); } else if (keyData == (Keys.Alt | Keys.N)) { return(true); } else if (keyData == (Keys.Alt | Keys.X)) { return(true); } else if (keyData == (Keys.Alt | Keys.L)) { return(true); } else if (keyData == (Keys.Alt | Keys.G)) { return(true); } else if (keyData == Keys.F5) { object objT = DieuHanhTaxi.GetFormGiamSatXe(); if (objT != null) { new frmRaHoatDong((frmGiamSatXe)objT, 1).ShowDialog(); } } else if (keyData == Keys.F6) { object objT = DieuHanhTaxi.GetFormGiamSatXe(); if (objT != null) { new frmRaHoatDong((frmGiamSatXe)objT, 2).ShowDialog(); } } else if (keyData == Keys.F7) { object objT = DieuHanhTaxi.GetFormGiamSatXe(); if (objT != null) { new frmRaHoatDong((frmGiamSatXe)objT, 3).ShowDialog(); } } else if (keyData == Keys.F8) { object objT = DieuHanhTaxi.GetFormGiamSatXe(); if (objT != null) { new frmRaHoatDong((frmGiamSatXe)objT, 4).ShowDialog(); } } else if (keyData == Keys.Enter) // Mo nhap du lieu dong 1 { this.btnOK_Click(null, null); if (this.DialogResult != DialogResult.No) { this.DialogResult = DialogResult.OK; } this.Close(); return(true); } return(false); }