I am merging from being a good asp.net programmer to a good vb.net programmer... and it is going quite slowly, mainly because the win32 form components don't behave like I want them toHere is my problem. Im using this code:
VB Code:
Dim di As New DirectoryInfo("C:\temp") ListView1.BeginUpdate() ListView1.Items.Clear() Dim fi As FileInfo For Each fi In di.GetFiles Dim item As New ListViewItem(fi.Name) ListView1.Items.Add(item) item.SubItems.Add(fi.Length) item.SubItems.Add(fi.CreationTime) item.SubItems.Add(fi.LastWriteTime) Next ListView1.EndUpdate()
this is straight from Balenas book on vb.net. this should fill a listview with rows, each row contains info on one file.
My problem is... if I select the "view" style, I only get the first column and a checkbox, all subitems are gone...
and if I select "details" I get empty rows...
what's the problem?
many thanks for your help!
yours
Henrik




Here is my problem. Im using this code:
Reply With Quote