I need to be able to browse (as in the browse button of "Find File") for
folders across my local drives, or the Network.
If a control exists that can do a similar thing, that would also be OK.
Any help is appreciated.
Thanks
Ade
--
Check Common Controls Replacement Projects ActiveX controls at:
http://www.zeode-sd.com/ccrp/
Domenico Statuto
Adrian Pegram <no-spam...@jba.co.za> wrote in article
<649lji$9us$1...@hermes.is.co.za>...
begin 600 BrowseFolder.zip
<encoded_portion_removed>
end
Adrian Pegram wrote in message <649lji$9us$1...@hermes.is.co.za>...
Domenico Statuto wrote in message <01bceeb3$f414ece0$01b01fc3@domenico>...
>This attached is a sample of BrowseForFolder. If you want a very powerful
>(yet free) Activex Control, check the website in my signature for Brad
>Martinez' BrowseForFolder control.
<SNIP>
Thanks guys, the sample is great, and so is the control. Using the sample,
how would I set the root folder (or starting folder) of the browse?
TIA
Ade
--
Check Common Controls Replacement Projects ActiveX controls at:
http://www.zeode-sd.com/ccrp/
Domenico Statuto
Adrian Pegram <no-spam...@jba.co.za> wrote in article
<64c7eo$rkt$1...@hermes.is.co.za>...
Have to set the pidlRoot member of the BROWSEINFO struct. For
special shell folders (My Computer, Start Menu, etc.) you can use
the SHGetSpecialFolderLocation API to get the folder's pidl (pointer
to an item id list). I didn't see what Domenico sent, but I show how
to do this in the BrowseDlg demo on my site.
To obtain the pidl for a "non special" file system folder, there are a
couple of choices. The hard and correct way to do this is to encapsulate
the IShellFolder interface and call it's ParseDisplayName member
function. The EnumDeskVB example on my site also shows how to
do this.
The easy and not guaranteed to always work way is to use the
undocumented SHSimpleIDListFromPath Shell32.dll function. Here's
the declare:
Declare Function SHSimpleIDListFromPath Lib "shell32" Alias "#162" _
(ByVal szPath As String) As Long
Some things to consider about this function: First the function is
exported at the specified ordinal in both Win95's and IE4's version
of Shell32.dll (versions 4.00.950(1) and 4.71 respectively) but there
is nothing that says it will be at this ordinal or available at all in future
versions of the library. Secondly, szPath must be specified as an
ANSII string in Win95, and as a Unicode string when called on WinNT.
Finally the function's name is misleading. This may not make much
sense, but the function returns an absolute pidl (or "complex" pidl, as
opposed to "simple"), relative to the desktop folder. See the SDK to
learn more on pidls.
It's your call... Oh, and thank you too. Domenico as well.
--
Brad Martinez
http://members.aol.com/btmtz/vb
Common Controls Replacement Project
http://www.zeode-sd.com/ccrp/