How do I measure the width of a string?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Without access to a Graphics object, how do I get the pixel width of a string?

Or maybe there's a way to get around measuring the width, because I am using
monospaced font (Courier New) so maybe there's a simpler way to find out how
wide each character is (since they're all the same). It's not the font size
though- already tried that....
 
Dont know what your skill level is so take this for what it is.

But you do know about CreateGraphics right?
 
Back
Top