Results 1 to 4 of 4

Thread: [RESOLVED] Select folder from Dir and open

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Resolved [RESOLVED] Select folder from Dir and open

    How to select the folder in the dirlistbox and open the filelist inside the folder without double click the folder in the dirlistbox?
    Attached Images Attached Images  

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Re: Select folder from Dir and open

    Any idea on this? How to open the directory in the directory list with one click?

  3. #3
    Addicted Member
    Join Date
    Jul 2007
    Posts
    146

    Re: Select folder from Dir and open

    Quote Originally Posted by matrik02
    Any idea on this? How to open the directory in the directory list with one click?
    I don't think you can, you have to double click a dir to open it.
    Jottum™
    XpVistaControls , (transparent) usercontrols for XP, Vista and 7 with W2K legacy support.

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Select folder from Dir and open

    Use code simular to this:
    vb Code:
    1. Private Sub Dir1_Click()
    2.     Dir1.Path = Dir1.List(Dir1.ListIndex)
    3. End Sub
    However you should be aware of the fact that this will also change the folder when the user use the keyboard to highlight a new item.

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