Ejemplo n.º 1
0
        private void SeCursorUnderArrow()
        {
            Point p = ((Control)this).PointToClient(Cursor.Position);

            if (!this.Focused)
            {
                this.Focus();                // autoselect control
            }
            int index = this.GetCharIndexFromPosition(p);

            if (UtilsForText.IsInSelectedText(index, this))
            {
                return;
            }
            this.Select(index, 0);
        }