File list with attributes in vb6

Posted on 2007-10-01
Last Modified: 2012-05-05
Does anyone know how to setup a file list like you would see in windows that will show file attributes such as filename, path, date modified, date created, image dimensions, audio length  for example
Filename     Path                   date modified      date created     dimensions
my.jpg       c:\pictures          01/01/2001         12/31/2000      1200x1400
her.jpg      c:\pictures          01/01/2001          12/31/2000     800x600
my.mp3    c:\mp3s               09/09/2007         09/08/2000     12m 45s

layed out in a table that can be sorted by individual columns?  I'm trying to build a universal bulk renaming program with some other enhancements
Question by:cpaulinski
    LVL 32

    Expert Comment

    by:Robberbaron (robr)
    perhaps a grid would be best and disable selection of some columns.

    try the flexGrid.
    LVL 32

    Assisted Solution

    by:Robberbaron (robr)
    it can be done in listbox also but I dont think it scrolls horizontally to enable viewing all data or user resize of column widths.

    for the flexgrid method, you need to add your own sort routines.
    heres an extract from my app that uses flexgrid to display data. it gets data from a dataset but could easily be file data

        fgdContacts.AddItem " Organisation" & vbTab & " Person" & vbTab & " Sets" & vbTab & " Method " & vbTab & "ID"
        fgdContacts.CellAlignment = flexAlignCenterCenter
        Do While Not rs_contact.EOF
            fgdContacts.AddItem rs_contact.Fields("Organisation") & vbTab & rs_contact.Fields("FirstName") & " " & rs_contact.Fields("LastName") & vbTab & "" & vbTab & "" & vbTab & rs_contact.Fields("PContactNo")
            fgdContacts.CellAlignment = flexAlignCenterCenter
            'fgdContacts.Tag = rs_contact.Fields("PContactNo")
            fgdContacts.FixedRows = 1


    LVL 7

    Expert Comment

    Look at the ListView Control, it has the column headers in which you can sort by clicking on the columns.
    LVL 7

    Accepted Solution


    Author Comment

    Thanks tward. I will check it out and see if I can get anything from it.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now