Results 1 to 7 of 7

Thread: How to encapsule in a efficient way both VBA Scripting and IShellItem handling.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2023
    Posts
    727

    How to encapsule in a efficient way both VBA Scripting and IShellItem handling.

    This demo shows how you in an efficient way you can incorporate, take advantage of and encapsule both methods in one control. The methods are the two way of enumerations. The first one is more basic For Each...Next with incorporates shell32 features.
    The second one is a more modern one and quite more complex advanced shell programming there IShellItem's are created and exposed with shellnames and shellicons.
    For convinience no subclassing routines are added.
    Attached Images Attached Images   
    Attached Files Attached Files

  2. #2
    Hyperactive Member
    Join Date
    Jun 2016
    Location
    España
    Posts
    498

    Re: How to encapsule in a efficient way both VBA Scripting and IShellItem handling.

    error Form1 not in the folder is in your ..\VB6_Kod\VB6 Kod\BrowseForFolder\Form1.frm

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2023
    Posts
    727

    Re: How to encapsule in a efficient way both VBA Scripting and IShellItem handling.

    The Form1 should be in that zip archive. Just probably in wrong folder. Move it into same folder.

  4. #4
    Hyperactive Member
    Join Date
    Jun 2016
    Location
    España
    Posts
    498

    Re: How to encapsule in a efficient way both VBA Scripting and IShellItem handling.

    no in zip onli folder temp and no form file

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2023
    Posts
    727

    Re: How to encapsule in a efficient way both VBA Scripting and IShellItem handling.

    Sorry, now I have attached a mnew zip file with form file within.
    Attached Files Attached Files

  6. #6
    Hyperactive Member
    Join Date
    Jun 2016
    Location
    España
    Posts
    498

    Re: How to encapsule in a efficient way both VBA Scripting and IShellItem handling.

    work fine
    lost this const
    Code:
    Public Const LVM_GETIMAGELIST = (LVM_FIRST + 2)
    Public Const LVM_SETIMAGELIST = (LVM_FIRST + 3)
    
    Public Const LVSIL_NORMAL = 0
    Public Const LVSIL_SMALL = 1
    Public Const LVSIL_STATE = 2

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2023
    Posts
    727

    Re: How to encapsule in a efficient way both VBA Scripting and IShellItem handling.

    My bad...the mListView32.bas file was linked from another directory. Had forgotten to save it in same folder. Now it's updated.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width