It's me again...
I've just recieved answer on my last question. But now I'm wondering how to run a file when u doubleclick on it in the FileListBox
Printable View
It's me again...
I've just recieved answer on my last question. But now I'm wondering how to run a file when u doubleclick on it in the FileListBox
Use the ShellExecute API
Code:Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Sub File1_DblClick()
ShellExecute hwnd, "open", File1.filename, "", "", 1
End Sub
Ok... thanx again
this one wasn't as easy (for me) as the previous one
Thanx...
i tried this one and it will only run the opnes that are in the vb directory as soon as i change directory they don't work, why, can you sort it out for me please as i have just exhausted all of my books and to no avail
Merlin ¿ :confused: