using System.Runtime.InteropServices; [DllImport("user32")] private static extern bool HideCaret(IntPtr hWnd); public void HideCaret() { HideCaret(textBox.Handle); }