sivle Posted March 4, 2003 Posted March 4, 2003 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 control's font. How can I solve this problem??:( Thanks very much!!:) Quote
*Gurus* divil Posted March 4, 2003 *Gurus* Posted March 4, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
sivle Posted March 4, 2003 Author Posted March 4, 2003 I see. I am the new comer. :) U are great!! Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.