is there a way to have the file listbox show more than one column or what control can i use that will
Printable View
is there a way to have the file listbox show more than one column or what control can i use that will
Use the listview control.
I've never had the need to use it how do I populate the listview with the contents of a directory
Anyone? :mad: :(
Code:'you could use a listbox and set it's column property to 2
'then make the filelistbox invisible and load the contents into
'the listbox...as you may or maynot be aware, when using columns in
'a listbox, the left side fills first before the second column starts
Private Sub Form_Load()
File1.Path = "C:\"
File1.Pattern = "*.*"
File1.Visible = False
Dim i
For i = 0 To File1.ListCount - 1
List1.AddItem File1.List(i)
Next i
End Sub
thank you all Now I can get some sleep its 10:30 and 4 am comes early so thanks again it woorked perfectly and i'm learning to