Could you (or anyone else

) give an example what exactly you have to code, to make text multiline in a listview?
I went through the OwnerDraw properties documentation, but it wasn't helpful in this context (granted, I now know how to set a different background color and to color text will surely be helpful some time. The hint for the DoubleBuffered setting was good too

).
I guess you have to code this part in the DrawSubItem-Handler?
This is my code for this handler so far:
Private Sub listView1_DrawSubItem(ByVal sender As Object, _
ByVal e As DrawListViewSubItemEventArgs) _
Handles ListView1.DrawSubItem
Dim sf As New StringFormat
Try
sf.Alignment = StringAlignment.Near
sf.Trimming = StringTrimming.EllipsisCharacter
e.Graphics.DrawString(e.SubItem.Text, e.Item.ListView.Font, Brushes.Black, e.Bounds, sf)
Finally
sf.Dispose()
End Try
End Sub
EDIT:
Ok, so I did some more research :) As I see it, there is no way to create ListView-Items or TreeView-Nodes, that are custom sized. All items in a List- or TreeView must have the same size. The only way around this would be to send calls to the Win32 Api to capture the MeasureItem events.
But then I'd like to know why there is no overridable method for MeasureItem, when the ListBox, for example, has it?