Results 1 to 5 of 5

Thread: Design question

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    617
    I want to be able to allow the user to select, say 3 files,
    from selected directories and do something with these files

    I do not want to provide text boxes for each of these
    files as the numer may increase later

    What is the best way or a very good way to present this
    on the screen?

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    Use a listbox.
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    617

    hmm

    I don't have the files.....They have to pick tem from the dialog box

  4. #4
    Guest
    You have three choices, what would you like to use?

    FileListBox
    Listbox
    CommonDialog

    Choose and I may be able to help you more.

  5. #5
    Hyperactive Member
    Join Date
    Jun 2000
    Location
    Auckland, NZ
    Posts
    411

    Use the ListBox

    Matthew is right although you could add TreeView (or whatever it's called) to the list of choices as well. But that takes alot of work to get looking right so stick with the good old listbox I reckon.

    It has the multi-select capability and will be the easiest for you to use in the way you want.

    The code segments you need to look into are:
    Code:
    ' add to a form with a listbox (multiselect set to extended or simple)
    Private Sub Form_Load()
      Dim lsFile As String
      lsFile = Dir("C:\")
      While lsFile <> ""
        List1.AddItem lsFile
        lsFile = Dir()
      Wend
    End Sub
    You will have to do more than this of course - but it is I think enough to point you in the right direction.

    Regards
    Paul Lewis

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