Howdy all,

I was wondering if there is a way to determine the width of text in a RichTextBox (in pixels or otherwise). The RichTextBox will have different sized fonts aswell.

RichTextBox1


Do I use GetTextMetrics? If so how? If not, what should I use?

Thanks in advance

Phreak