That's REALLY hard to do as you have to take into account font point size, screen resolution, etc. If it has to support non-English, it adds more complexity.
>Hi All:
>
>I have a class to which I pass a string to be a value for a text box in the class. I then want to adjust the width of the text box so that it is the width of the text string. How do I convert text string width to form control width?
>
>Thanks,
>
>Yossi
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer