>I have an editbox object that I need to resize programmatically to make
>sure that it is wide enough to accomodate the longest line of text.
>
>Anybody has a suggestion on calculating the width in pixels for a known number of characters for non-proportional fonts? (maybe some approximation is needed)
>
Check out TXTWIDTH() function and form's TextWidth() Method.
--sb--