GetTextExtentPoint32 Problem

sivle

Member
Joined
Feb 1, 2003
Messages
6
Hello, I am using Graphic to draw a string on my user control. The problem is that I use GetTextExtentPoint32 to get the string length in pixel, but the value returned is not the actual length of my controls font. How can I solve this problem??:(
Thanks very much!!:)
 
Why are you using that API to do it?

To get the measurements for a piece of text on a graphics surface, use the Graphics.MeasureString function.
 
Back
Top