View Full Version : Getting word width in pixels


hooks
03-19-2007, 10:14 AM
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

hooks
12-18-2007, 02:53 PM
Im bumping this so hopefully someone can help me with this.

Thanks Hooks