[DllImport("user32.dll")]
        private static extern bool GetCaretPos(out Point ppt);
        [DllImport("user32.dll")]
        private static extern bool HideCaret(IntPtr hWnd);


本文转载:CSDN博客