protected virtual void OnInvalidDateEntry(object sender, InvalidDateTextEventArgs e)
        {
            if (_RequireValidEntry)
            {
                // Force the user to address the problem before navigating away from the control:
                MessageBox.Show(e.Message);
                this.Focus();
                this.MaskedDateTextBox_SelectAllOnEnter(this, new EventArgs());
            }

            // Raise the invalid entry event either way. Client code can determine if and
            // how invalid entry should be dealt with:
            if (InvalidDateEntered != null)
            {
                InvalidDateEntered(this, e);
            }
        }
        protected virtual void OnInvalidDateEntry(object sender, InvalidDateTextEventArgs e)
        {
            if (_RequireValidEntry)
            {
                // Force the user to address the problem before navigating away from the control:
                MessageBox.Show(e.Message);
                this.Focus();
                this.MaskedDateTextBox_SelectAllOnEnter(this, new EventArgs());
            }

            // Raise the invalid entry event either way. Client code can determine if and
            // how invalid entry should be dealt with:
            if (InvalidDateEntered != null)
                InvalidDateEntered(this, e);
        }