ShellControls for VB6 11.0.2.7
ShellBrowse 11.0 and ShellTree 2.7
Updated 25 Jan 2022
I'll be posting my ShellBrowse and ShellTree controls as a single OCX from now on in addition to the regular versions for anybody interested in using them this way.
Both controls are marked Safe for Initialization and Scripting with IObjectSafety.
The zip includes SxS resources to create programs that use the ocx registration-free. In your project with the ocx, simply include either manifest-- one also includes Common Controls 6.0 and is highly recommended, the other simply the sxs info, then install the ocx to the same directory as the exe and you're good to go, the control won't need to be registered on the end-user machine.
The source code is identical to the public releases, but I'm attaching them with the project file used to compile the ocx so you can produce a hash-identical version to verify.
For all the sample projects and version history, download the source from the ShellBrowse and ShellTree main threads. The attachment here is just the barebones version required to build the OCX.
Requirements:
-oleexp.tlb is still required in the IDE if you need to use any events with an IShellItem or IShellItemArray parameter, or if you're going to use one of those from the control properties in your project.
-Also: It is very strongly recommended that any projects with these use Common Controls 6.0 manifests.
This zip also includes a generic .res file for your projects that adds ComCtl6 support, or a .manifest version to insert into your own resource.
Current Version Updated Jan25 2022 to use ucShellBrowse v11.0 and ucShellTree 2.7
Older Updates
UPDATE (3/22): Project updated to use ucShellBrowse 9.5 R1.
UPDATE (3/25): Project updated to use ucShellBrowse 9.5 R2.
UPDATE (4/03): Project updated to use ucShellBrowse 9.6 and ucShellTree 2.6.
UPDATE (4/22): Project updated to use ucShellBrowse 9.6 R3
UPDATE (4/23): Project updated to use ucShellBrowse 9.7
UPDATE (4/24): Project updated to use ucShellBrowse 10.0
UPDATE (4/28): Project updated to use ucShellBrowse 10.0 R2
UPDATE (4/29): Project updated to use ucShellBrowse 10.0 R3
UPDATE (4/29 (again)): Project updated to use ucShellBrowse 10.0 R4
Recommended Version: 12.2 twinBASIC Version
Apparently there's some issues with the last VB6 version compiled to OCX, so if that's how you want to use these controls, I now recommend using the latest version from the twinBASIC branch. There's been *major* compatibility improvements to ActiveX control builds over the past month, and the latest version is now working very well in VB6.
You can download it from the project repository: https://github.com/fafalone/ShellControls
The 'Releases' section has binary builds of the OCX (a 32bit version for VB6 and 32bit tB/Office/.NET, and a 64bit version for tB/Office/.NET 64bit).
Or you can build from source with the file ShellControlsTB.twinproj. Open this in twinBASIC (the free tier will work) run as admin, make sure the IDE is in 'win32' mode (combobox in the toolbar) to build for VB6, then File->Build.




Reply With Quote