Solved

Refreshing a ShellTreeView

Posted on 2004-10-13
7
1,270 Views
Last Modified: 2008-02-01
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
Comment
Question by:marioway
  • 4
  • 3
7 Comments
 
LVL 26

Accepted Solution

by:
EddieShipman earned 250 total points
ID: 12308440
Did you try calling the public method Refresh when the SHFileOp is done?
0
 

Author Comment

by:marioway
ID: 12308519
Hi, autorefresh is on . How can I do it at runtime ?

marioway
0
 
LVL 26

Expert Comment

by:EddieShipman
ID: 12309152
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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 26

Expert Comment

by:EddieShipman
ID: 12309155
Do files show in the treeview?
0
 

Author Comment

by:marioway
ID: 12309697
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
 

Author Comment

by:marioway
ID: 12309777
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
 

Author Comment

by:marioway
ID: 12309861
Hi,

Now I can see the files also !!

Thanks alot

Marioway
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question