How do I measure the width of a string?

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....
 
T

Tom Jones

Dont know what your skill level is so take this for what it is.

But you do know about CreateGraphics right?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top