Results 1 to 4 of 4

Thread: an interface q

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 1999
    Posts
    23
    hi, I'm taking on a program that is going to require choosing file destinations and selecting files for a few diffrent purposes, and this is the first time that ive ever gotten into something like this because i havent been programing long and i was hoping that somebody would have some suggestions on what i might do...just any kind of general feed back...well thanks to anybody that responds...

    matt

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Posts
    76
    Try using FileListBox
    if succesful add punch to ur program with
    Drivelistbox
    and also directorylistbox

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 1999
    Posts
    23
    i guess i should have been more specific...i got the basic form with the filelist box dir box and the drive list...but how do i make this form more multipurpose...right now all i can do with it is select files and pass that file to one certain sub...but how do i make it so it will pass the file to whatever it is that pulled the box up?

    well i hope this illustrates my problem a little better...


  4. #4
    Junior Member
    Join Date
    Apr 2000
    Posts
    24

    Ok...

    First, make a standard form.

    Then, goto the toolbar and select the "Directory List" object.

    Just place it where you want it.

    Then create a "File List" object. If you want it to only open certain files then change the "pattern" property to *.(application extension)*.

    Finally, place a command box.

    Name your directory list DirList and your file list FileList. Your command box is going to be called open_file.


    Then just plug in this code:


    Private Sub DirList_Change()

    FileList.Path = DirList.Path

    End Sub



    Private Sub open_file_Click()

    FilePath = DirList.Path + "/" + FileList

    Shell "Notepad.exe " & FilePath, vbNormal

    End Sub


    (Sorry, I guess I misunderstood what you were trying to do.)
    [Edited by Baron_Fel on 04-05-2000 at 05:12 PM]

    [Edited by Baron_Fel on 04-05-2000 at 05:13 PM]

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