Search code examples
c#listboxword-wraplistbox-control

An efficient way of looping through items in a windows list box and apply a word wrap


I have a word wrap which is the width of the list box, how can I split the text that populates this listbox and push it onto another line if it exceeds this wrap? I need to apply this to every line of text in the list box.


Solution

  • I think what you want is an owner-drawn listbox.