G
Gerry Viator
Hi all,
I would like to make a listview column width to fit the width of the largest
item length from a listbox?
Do I have to convert to pixcels? How?
Dim o As Object
Dim ItemSz As Integer
For Each o In ListEntries.Items
If o.length > ItemSz Then
ItemSz = o.length
End If
Next
Mainlistview.Columns.Add("Col1", ItemSz, HorizontalAlignment.Left)
thanks
Gerry
I would like to make a listview column width to fit the width of the largest
item length from a listbox?
Do I have to convert to pixcels? How?
Dim o As Object
Dim ItemSz As Integer
For Each o In ListEntries.Items
If o.length > ItemSz Then
ItemSz = o.length
End If
Next
Mainlistview.Columns.Add("Col1", ItemSz, HorizontalAlignment.Left)
thanks
Gerry