Results 1 to 4 of 4

Thread: Another question

  1. #1

    Thread Starter
    Lively Member Skateboarder's Avatar
    Join Date
    Nov 2000
    Location
    Delfzijl, the Netherlands
    Posts
    66

    Wink

    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

  2. #2
    Guest
    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

  3. #3

    Thread Starter
    Lively Member Skateboarder's Avatar
    Join Date
    Nov 2000
    Location
    Delfzijl, the Netherlands
    Posts
    66

    Thanx... again

    Ok... thanx again
    this one wasn't as easy (for me) as the previous one

    Thanx...

  4. #4
    Fanatic Member zmerlinz's Avatar
    Join Date
    May 2000
    Location
    in a world where the sun always shines on the bloody tv!!
    Posts
    604

    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
  •  



Click Here to Expand Forum to Full Width