Results 1 to 2 of 2

Thread: OCX for folder view

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2009
    Posts
    1

    OCX for folder view

    Hy all, i need some ocx for my application.
    On of is Folder view like this



    any one can help me to get it?


  2. #2
    Lively Member amolt's Avatar
    Join Date
    Aug 2006
    Location
    INDIA
    Posts
    80

    Re: OCX for folder view

    Hi hrxx,

    You can display folder view dialog by refering to Microsoft Shell Controls and Automation (Shell32.dll) library in visual basic 6.0

    eg:
    Code:
    Private Sub Command1_Click()
        'Microsoft Shell Controls and Automation (Shell32.dll)
        Dim shView As Shell
        Dim foldItem As FolderItem
        Set shView = New Shell
        Set foldItem = shView.BrowseForFolder(Me.hWnd, "Select Folder",       ssfPROGRAMFILES)
        If Not foldItem Is Nothing Then
            MsgBox foldItem.Name
        End If
    End Sub
    The same thing is achieved by api call too.
    Which folder you want to displayed is specified in Options and these starts from ssf*

    Hope it helps ,,

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