private void txtInpatientID_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { clsCtl_ReportZY obj = new clsCtl_ReportZY(); this.txtRegisterID.m_dtbDataSourse = obj.m_dtInitText(this.txtInpatientID.Text.Trim(), this.cobSelect.SelectedIndex); this.txtRegisterID.m_mthFillData(); this.txtRegisterID.Focus(); } }