Adding item numbers to a listbox programatically

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ColinWard

    Adding item numbers to a listbox programatically


    I have the following loop which goes through and adds items to a
    listbox. the items have been selected by the user from a file open
    dialog. Right now all that shows up is the filename. I would like to be
    able to number the files so that it looks better. How can I modify this
    code to add item numbers?

    --Code Start--
    For Each varItem In dlgopenfile.sel ecteditems
    LstAttachment.A ddItem varItem
    LstAttachment2. AddItem PathOnly(varIte m)
    Next

    I only need to add line numbers to lstattachment2.

    thank you

    Colin Ward

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • ColinWard

    #2
    Re: Adding item numbers to a listbox programatically

    I got it.
    thanks



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

    Comment

    Working...