• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1608
  • 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
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

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