Hi there.
I am developing an explorer-like application.
However, there is one problem.
If the current dir has many files, it will take a while to populate the
listview with all the files and folders.
How can I overcome this? Programs such as Total Commander have no problem
what so ever. So is there anything I can do?
Also, how can I populate both the treeview and the listview from a new
thread?
I have already tried
Private Sub TreeView1_AfterSelect(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterSelect
TN = e.Node
Dim T As New Threading.Thread(AddressOf ThUpd)
T.Start()
End Sub
Sub ThUpd()
Dim mi As New MethodInvoker(AddressOf Me.UpdateViews)
Me.BeginInvoke(mi)
End Sub
But that makes the program run as if no new thread was created and still
blocks the user from using the program's UI.
Thank you!