Solved

Link treeview control to network - Same as Window Explorer

Posted on 2002-04-15
5
221 Views
Last Modified: 2007-12-19
Hi experts

How do i use the treeview component on my form so that it links to the network directories, just like windows explorer??

thanks woollar1
0
Comment
Question by:woollar1
  • 3
5 Comments
 
LVL 2

Expert Comment

by:DanAvni
Comment Utility
if you are looking for a way for the user to select a folder have a look at this:
http://216.5.163.42/vb/scripts/ShowCode.asp?txtCodeId=33574&lngWId=1
0
 

Author Comment

by:woollar1
Comment Utility
Hi DanAvni
thanks for your time and the link
the download software was nice, but not what i was looking for.

VB has a component Dirlistbox which shows all the folders easily.

VB also has a component filelistbox which displays all the files for the current folder.

BUt surely you can use the treeview component to view all folders and when you click on a folder, you can then see all the files, just like explorer....

well i guess i am going to have to use Dirlistbox  with filelistbox..

How can you link these two components so that the filelsitbox shows all the files for the currently directory clicked in the dirlistbox??????

thanks woollar1
0
 
LVL 1

Accepted Solution

by:
olx earned 100 total points
Comment Utility
use ccrpfd.ocx

go to www.mvps.org/ccrp

its simple and free

    Me.ccrpFileDialogs1.ShowOpen
    file = Me.ccrpFileDialogs1.filename
   
    'or
   
    Me.ccrpFileDialogs1.ShowSave
    file = Me.ccrpFileDialogs1.filename
   
   

0
 

Author Comment

by:woollar1
Comment Utility
HI experts
Okay..this application is over the top. ccrpfd.ocx

Want i really want is the windows version of an

    "open dialog box..."

sorry if i am not concise and using your time inappropiately...

thanks, woolla1
0
 

Author Comment

by:woollar1
Comment Utility
whoops..sorry i have found a common dialog box which does the trick..sorry for wasting your time!!!!!!

i will allocate the points..
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

763 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now