Exemplo n.º 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;
        }
Exemplo n.º 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;
            }
        }