Unable to Calculate Position within Owner-Draw Text
- by Jonathan Wood
I'm trying to use Visual Studio 2012 to create a Windows Forms application that can place the caret at the current position within a owner-drawn string. However, I've been unable to find a way to accurately calculate that position.
I've done this successfully before in C++. I've now tried numerous methods in C#. Originally, I tried using .NET…