Results 1 to 3 of 3

Thread: About reading files. [Solved]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    169

    About reading files. [Solved]

    Does anyone know how to make it when I double click on a certain file type e.g. "File.cat" then it opens up a executable I made in VB and puts the text from "File.cat" in a textbox.

    I know how to make it when you double click on the file then it opens the executable put I don't know how to make it put the text from the file into a Textbox in the executable. Can someone please help me?
    Last edited by nuclear112; Jun 1st, 2007 at 05:49 PM.

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: About reading files.

    When you double-click on the file, the file name will be sent to your program on a command line - which you can read this from the Command function, eg:
    Code:
    Msgbox "File to open: " & Command
    As to actually loading the file, see this article from our Classic VB FAQs.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    169

    Re: About reading files.

    Thanks you very much!

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