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. Select a file and then open it

Select a file and then open it

Scheduled Pinned Locked Moved Visual Basic
5 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.
  • D Offline
    D Offline
    directred
    wrote on last edited by
    #1

    Hi, I want to open a file via OpenFileDialog1 or is there a better way to select a file and then open it. Via this way, I want to select say a pdf file and double click and the file opens. I seem to be able to select the file but the file will not open. I know I am missing just about one line of code.

    D 1 Reply Last reply
    0
    • D directred

      Hi, I want to open a file via OpenFileDialog1 or is there a better way to select a file and then open it. Via this way, I want to select say a pdf file and double click and the file opens. I seem to be able to select the file but the file will not open. I know I am missing just about one line of code.

      D Offline
      D Offline
      DaveAuld
      wrote on last edited by
      #2

      I think your missing more than 1 line of code.........what are you trying to open it with? In your app, or fire off an external process.

      Dave Find Me On: Web|Facebook|Twitter|LinkedIn


      Latest Article:Data Historians! You Bought It, Use It! Real World Example Latest Tip/Trick:Google Charting API and Formula Imaging


      D 1 Reply Last reply
      0
      • D DaveAuld

        I think your missing more than 1 line of code.........what are you trying to open it with? In your app, or fire off an external process.

        Dave Find Me On: Web|Facebook|Twitter|LinkedIn


        Latest Article:Data Historians! You Bought It, Use It! Real World Example Latest Tip/Trick:Google Charting API and Formula Imaging


        D Offline
        D Offline
        directred
        wrote on last edited by
        #3

        This can be closed. Found out another way. Copy to ListBox, select a file and then do what I want with that file.

        D 1 Reply Last reply
        0
        • D directred

          This can be closed. Found out another way. Copy to ListBox, select a file and then do what I want with that file.

          D Offline
          D Offline
          DaveAuld
          wrote on last edited by
          #4

          Ok, i will remember that for the future. :confused:

          Dave Find Me On: Web|Facebook|Twitter|LinkedIn


          Latest Article:Data Historians! You Bought It, Use It! Real World Example Latest Tip/Trick:Google Charting API and Formula Imaging


          L 1 Reply Last reply
          0
          • D DaveAuld

            Ok, i will remember that for the future. :confused:

            Dave Find Me On: Web|Facebook|Twitter|LinkedIn


            Latest Article:Data Historians! You Bought It, Use It! Real World Example Latest Tip/Trick:Google Charting API and Formula Imaging


            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            I wouldn't know where to "file" that "information", so please remember it for me too. :-D

            Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum

            Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

            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