/// <summary> /// /// </summary> protected override void OnEnterKeyPressed() { if (m_DroppedDown && m_WDatePickerPopUp != null) { m_WDatePickerPopUp.RaiseSelectionChanged(); m_WDatePickerPopUp.Close(); } else { OnDateChanged(); } }
/// <summary> /// /// </summary> /// <param name="keyData"></param> /// <returns></returns> protected override bool ProcessDialogKey(System.Windows.Forms.Keys keyData) { if (m_DroppedDown) { m_WDatePickerPopUp.RaiseSelectionChanged(); m_WDatePickerPopUp.Close(); return(true); } else { return(base.ProcessDialogKey(keyData)); } }