TextWidth equivalent?

Darc

Well-known member
Joined
Apr 18, 2003
Messages
89
is there a .NET equivalent of TextWidth from VB 6.0? I need to center some text...
 
you could get the width of text in pixels, making it possible to center text.
 
You can use the a label and set the alignment to center otherwise you can use the MeasureString function
 
Hey, I was trying the MeasureString function above in VB.Net but it seems that theres no such function in .Net. Im not sure thought if I understand you guys correctly.
 
Back
Top