SetCaretPos

[DllImport("user32.dll", SetLastError = true)]
public static extern bool SetCaretPos(
   int X,
   int Y
);

Microsoft documentation: Link

Last updated