Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Opening files in fileListBox

Opening files in fileListBox

Scheduled Pinned Locked Moved Visual Basic
questionlinuxhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    annir
    wrote on last edited by
    #1

    Hi Guys, I have something to ask if someone knows how can I open the file that i choose from the filelistbox? Every time I select a file in the filelistbox, nothing happens it will not open. This is my code. Dim a As String a= Shell("rundll32.exe url.dll,FileProtocolHandler " & FileListBox1.SelectedItem) Pls guys, I need you help on this one. Thank you! annir

    C L 2 Replies Last reply
    0
    • A annir

      Hi Guys, I have something to ask if someone knows how can I open the file that i choose from the filelistbox? Every time I select a file in the filelistbox, nothing happens it will not open. This is my code. Dim a As String a= Shell("rundll32.exe url.dll,FileProtocolHandler " & FileListBox1.SelectedItem) Pls guys, I need you help on this one. Thank you! annir

      C Offline
      C Offline
      C1AllenS
      wrote on last edited by
      #2

      Hello Annir, Have a look at the given web link which provides similar information. http://www.developerfusion.co.uk/show/278/ I hope this will assist you. Regards,

      Allen Smith ComponentOne LLC www.componentone.com

      1 Reply Last reply
      0
      • A annir

        Hi Guys, I have something to ask if someone knows how can I open the file that i choose from the filelistbox? Every time I select a file in the filelistbox, nothing happens it will not open. This is my code. Dim a As String a= Shell("rundll32.exe url.dll,FileProtocolHandler " & FileListBox1.SelectedItem) Pls guys, I need you help on this one. Thank you! annir

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Use System.Diagnostics.Process.Start().

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups