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?
Printable View
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?
What type of file and what do you need to open it for? :confused:
Control : Microsoft Common Dialog ControlCode:Function GetFileLocation() As String
With CommonDialog
.ShowOpen
GetFileLocation = .FileName
End With
End Function
Private Sub Command1_Click()
Text1.Text = GetFileLocation
End Sub
Quote:
Originally Posted by RhinoBull
Avi files
good old avis
EDIt thanks Zack for your help!