Results 1 to 6 of 6

Thread: File listbox Question

  1. #1
    egiggey
    Guest

    File listbox Question

    is there a way to have the file listbox show more than one column or what control can i use that will

  2. #2
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768
    Use the listview control.

  3. #3
    egiggey
    Guest
    I've never had the need to use it how do I populate the listview with the contents of a directory

  4. #4
    egiggey
    Guest
    Anyone?

  5. #5
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Code:
    'you could use a listbox and set it's column property to 2
    'then make the filelistbox invisible and load the contents into
    'the listbox...as you may or maynot be aware, when using columns in
    'a listbox, the left side fills first before the second column starts
    
    Private Sub Form_Load()
        File1.Path = "C:\"
        File1.Pattern = "*.*"
        File1.Visible = False
        Dim i
        For i = 0 To File1.ListCount - 1
         List1.AddItem File1.List(i)
         Next i
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  6. #6
    egiggey
    Guest
    thank you all Now I can get some sleep its 10:30 and 4 am comes early so thanks again it woorked perfectly and i'm learning to

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