Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1509
  • Last Modified:

Refreshing a ShellTreeView

Hi, I have a problem. I'm working on a backup program. I'm using a ShellComboBox, ShellTreeView, ShellListView. When I copy files from a source , using TSHOptFilestruct,...  the copied files (folders) reflect in the ShellListview, but not in the ShellTreeview. The ShellTreeView is not updated. How can I accomplish this ?

thanks
marioway
0
marioway
Asked:
marioway
  • 4
  • 3
1 Solution
 
Eddie ShipmanAll-around developerCommented:
Did you try calling the public method Refresh when the SHFileOp is done?
0
 
mariowayAuthor Commented:
Hi, autorefresh is on . How can I do it at runtime ?

marioway
0
 
Eddie ShipmanAll-around developerCommented:
Well, I just tested in D6 with AutoRefresh set to True and
it worked just fine. Are you copying/moving files or directories?
If copying files, do you have the otNonFolders ObjectTypes set to True?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Eddie ShipmanAll-around developerCommented:
Do files show in the treeview?
0
 
mariowayAuthor Commented:
Hello , I copy files and directories, but I'm going to set the otNonFolders to true, to see What happens; I'l let you know in a while. Thanks alot.

marioway
0
 
mariowayAuthor Commented:
By the way, I don't know if my reply before the last one has arrived . What I have done is:

ShellTreeView.Refresh(ShellTreeView.TopItem) and this works fine. (for folders); now I'm going to try otNonfol....

I set the ShellTreeView.root to ShellComboBox1.Path;

thx
Marioway
0
 
mariowayAuthor Commented:
Hi,

Now I can see the files also !!

Thanks alot

Marioway
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now