Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Controls / October 2008



Tip: Looking for answers? Try searching our database.

Drive Box and Network

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Keith Willcocks - 25 Sep 2008 17:12 GMT
In VB6 I am using a Drive Box to control a Dir List Box to select folders.
By the very nature of what it is the Drive Box only shows drives on my
machine.   I would like also to have access to shared drives on my home
network.   Is there a way to do this?   Simple language please, I am a
newby.
Signature

Keith W

Jeff Johnson - 25 Sep 2008 17:22 GMT
> In VB6 I am using a Drive Box to control a Dir List Box to select folders.
> By the very nature of what it is the Drive Box only shows drives on my
> machine.   I would like also to have access to shared drives on my home
> network.   Is there a way to do this?   Simple language please, I am a
> newby.

The simplest way I can put it is "Don't use the xxxListBox controls." They
are ancient (Windows 3.1) technology and intended for backwards
compatibility only. And as you've found out, they have limitations. This
might be overkill for you, but go to
http://ccrp.mvps.org/download/ccrpdownloads.htm and have a look at the
FolderTreeview control. I've never used it, but I believe it functions a lot
like the tree view in Windows Explorer, so you should be able to find all
your drives there. Another option is to search for "browse dialog." You'll
find something on the CCRP as well, but you might want to look at a pure
code solution like you can find at http://vbnet.mvps.org. (Don't be fooled
by "vbnet" in the name. It has nothing to do with VB.NET.)
Keith Willcocks - 25 Sep 2008 17:31 GMT
>> In VB6 I am using a Drive Box to control a Dir List Box to select
>> folders. By the very nature of what it is the Drive Box only shows drives
[quoted text clipped - 13 lines]
> pure code solution like you can find at http://vbnet.mvps.org. (Don't be
> fooled by "vbnet" in the name. It has nothing to do with VB.NET.)

Thanks for that, I shall go and investigate the sites you have suggested.
Incidentally, that is the quickest response I have ever had on a newsgroup.
Thanks again.
Signature

Keith W

Jeff Johnson - 26 Sep 2008 14:18 GMT
> Thanks for that, I shall go and investigate the sites you have suggested.
> Incidentally, that is the quickest response I have ever had on a
> newsgroup.

Heh, don't be too impressed, it was just luck of the draw. I actually check
this group far less frequently than I do the .general.discussion group, so
the timing was coincidental!

And post back with your results. I love to hear stories of people dropping
that Win 3.1-looking crap and adding a modern look to their UIs. (Some folks
seem to be a bit nostalgic about these older controls, and treat them with
the "...from my cold, dead hands" attitude.)
Keith Willcocks - 01 Oct 2008 16:34 GMT
>> Thanks for that, I shall go and investigate the sites you have suggested.
>> Incidentally, that is the quickest response I have ever had on a
[quoted text clipped - 8 lines]
> folks seem to be a bit nostalgic about these older controls, and treat
> them with the "...from my cold, dead hands" attitude.)

Sorry I've been a long time replying, my landline has been down since the
end of last week and they've only just fixed it.

The FolderTree control works perfectly in Win XP but curiously not in Vista.
Even more curious is that it runs fine from within VB6 in Vista, but crashes
out when used in an exe file.  Very mysterious.   There must be a way around
it but I am blessed if I can find it.
Signature

Keith W

Randy Birch - 02 Oct 2008 23:56 GMT
Does any of these code ideas do the trick? (not controls but raw code you
can use as you wish) ... http://vbnet.mvps.org/code/browse/index.html

Signature

Randy
ms mvp - visual basic
http://vbnet.mvps.org/

>>> Thanks for that, I shall go and investigate the sites you have
>>> suggested. Incidentally, that is the quickest response I have ever had
[quoted text clipped - 16 lines]
> but crashes out when used in an exe file.  Very mysterious.   There must
> be a way around it but I am blessed if I can find it.
Timo Kunze - 07 Oct 2008 18:00 GMT
Keith Willcocks schrieb:
> The FolderTree control works perfectly in Win XP but curiously not in
> Vista. Even more curious is that it runs fine from within VB6 in Vista,
> but crashes out when used in an exe file.  Very mysterious.   There must
> be a way around it but I am blessed if I can find it.
http://www.timosoft-software.de/phpBB2/dload.php?action=category&cat_id=5
Similar control (with more features and still supported), works also on
Vista.

Timo
Signature

www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."
"Demokratie ist per Definition unsicher. Ihr Schutz entsteht aus der
Überzeugung, dass die demokratischen Kräfte überwiegen und sich – auf
demokratischem Wege – durchsetzen."

Keith W - 08 Oct 2008 18:24 GMT
> Keith Willcocks schrieb:
>> The FolderTree control works perfectly in Win XP but curiously not in
[quoted text clipped - 4 lines]
> Similar control (with more features and still supported), works also on
> Vista.

I have got it working now but I will have a go using this one as well.
Nothing ventured as they say...

Thanks,

Signature

Keith W
Sunbury on Thames
(If you can't laugh at life, it ain't worth living)

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.