Getting word width in pixels

hooks

Registered User.
Local time
Today, 08:37
Joined
Aug 13, 2004
Messages
160
Hey all, got a vb.net question. I am creating a generic reporting application. The problem that i am running into is display checkboxes on the report right behind the label. My application works great when using fonts where every character is the same width. If a user uses a font where each character is a different width then my checkbox moves pretty far away from the lable and doesn't look correct.

Does anyone know of a way to tell how many pixels wide a string is and it also has to take into account which font the user is using?

Thanks Hooks
 
Im bumping this so hopefully someone can help me with this.

Thanks Hooks
 

Users who are viewing this thread

Back
Top Bottom