Winforms: Screen Location of Caret Position

.net, c#, caret, textbox, winforms

Solution

You can do it only with native interop: GetCaretPos

[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool GetCaretPos(out Point lpPoint);

Problem

How can I find the screen position of the caret for a standard Winforms TextBox?

Original source

Related problems