|
-
Nov 5th, 2000, 11:41 AM
#1
Thread Starter
Lively Member
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
-
Nov 5th, 2000, 11:48 AM
#2
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
-
Nov 5th, 2000, 11:50 AM
#3
Thread Starter
Lively Member
Thanx... again
Ok... thanx again
this one wasn't as easy (for me) as the previous one
Thanx...
-
Nov 5th, 2000, 05:41 PM
#4
Fanatic Member
megatron
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 ¿
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
[ Galahtech.com] | [ My Site] | [ Fishsponge] | [ UnixForum.co.uk]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|