Results 1 to 4 of 4

Thread: [RESOLVED] Opening Files

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Posts
    2,295

    Resolved [RESOLVED] Opening Files

    Hey guys I was wondering how do I open files like most programs have?

    Is there a windows api for that? I would like to open and look for avi files and then the file that is chosen gets its location and filename added to text1?

  2. #2

  3. #3
    Frenzied Member
    Join Date
    Dec 2007
    Posts
    1,072

    Re: Opening Files

    Code:
    Function GetFileLocation() As String
       
        With CommonDialog
        .ShowOpen
        GetFileLocation = .FileName
        End With
    
    End Function
    
    Private Sub Command1_Click()
        Text1.Text = GetFileLocation
    End Sub
    Control : Microsoft Common Dialog Control

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    May 2006
    Posts
    2,295

    Re: Opening Files

    Quote Originally Posted by RhinoBull
    What type of file and what do you need to open it for?

    Avi files

    good old avis

    EDIt thanks Zack for your help!
    Last edited by Justin M; Jan 5th, 2008 at 12:05 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