Raising events on a treeview to update it
Hey folks,
I have a VB.Net app that does batch renaming, copying and deleting of files according to various input/output paramaters. In the form I have a TreeView object which is populated with the various system devices etc (and behaves like the left pane in Windows Explorer) and a ListView object that reflects the contents (files) of any directory selected in the TreeView.
It all works fine but my problem is that when I've done a rename/copy/delete operation I want to be able to automatically raise a new event to reselect the current node (directory) in the TreeView so it re-reads that directory to get the correct (ie: updated) files.
I tried to use the RaiseEvent method but it appears I can't use this on a TreeView object (or any other windows forms controls) so am at a loss as to how to get the TreeView to automatically update after my file operations have completed.
Can anyone point me in the right direction?
TIA...
Mike.