Пример #1
0
        /// <summary>
        /// Prevent the TextBox.GotMouseCapture custom code from firing until the next focus event.
        /// This method should be invoked after the TextBox has finalized its focus logic.
        /// </summary>
        protected static void OnFocusComplete(TextBoxEx txt)
        {
            if (txt == null)
                return;

            if (txt.CancelGotMouseCapture)
                txt.CancelGotMouseCapture = false;
        }
Пример #2
0
        /// <summary>
        /// Prevent the TextBox.GotMouseCapture custom code from firing until the next focus event.
        /// This method should be invoked after the TextBox has finalized its focus logic.
        /// </summary>
        protected static void OnFocusComplete(TextBoxEx txt)
        {
            if (txt == null)
            {
                return;
            }

            if (txt.CancelGotMouseCapture)
            {
                txt.CancelGotMouseCapture = false;
            }
        }