> Given the font, font size, and control type and width, is is possible to
> calculate how many characters will fit into the visiblearea of an edit
> For example I want to create a function called FitStringtoControl, which
> passed a edit control, and single character, will pad out the returned
> string until it exactly fits the width of the control.
Canvas.TextWidth will tell you the width of a string in pixels.