Hello All,
I have a single colunmed list box and I'm adding long strings to it. What I want to know *before* I add the string to the list box is whether the string is too long to show it completely in the listbox.
You obvioulsy can't compare the ClientWidth with the string.Length as they are in different measurements.
Is there some equivalent to Canvas.TextExtent() or something similar ?
Thanks
sjc
I have a single colunmed list box and I'm adding long strings to it. What I want to know *before* I add the string to the list box is whether the string is too long to show it completely in the listbox.
You obvioulsy can't compare the ClientWidth with the string.Length as they are in different measurements.
Is there some equivalent to Canvas.TextExtent() or something similar ?
Thanks
sjc