Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb6 Get font width metrics

Status
Not open for further replies.

JimHilton

IS-IT--Management
Jun 20, 2009
346
CA
Hi, I thought this would be a piece of cake but its turning out to be quite the mystery.

I am writing a program that needs to know the font width of any character added to the text box.

I'm using the text onchange event.

I need the font width's width in points

I've tried the the picture box route, but am not comfortable with it and i need to evaluate 4 text boxes with different sized fonts.

Thanks!

Jim
 



Hi,

If you are coding in Vb6, then please post in forum222. This forum is forum707.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
As Skip says, if this is a VB6 question it ought to be in forum222

If you repost there (and we can definitely help) perhaps you could expand a little on:

>am not comfortable with [the picture box route]

and let us know why you have an issue with that technique.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top