Results 1 to 3 of 3

Thread: Opening registered filetypes

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Posts
    24

    Post

    I'm currently working on a program that can read .txt and .rtf files. If you open a file from the open dialog in the program, it shows how cool VB can be...
    Recently I found out how to register file types. So I registered .txt and .rtf to my program with the command "**prog. path + exe** %1". But then I tried to open a file and nothing happened. My program showed up with nothing in the RichTextBox...



    ------------------
    Doomstar
    http://come.to/Doomstar

  2. #2
    Junior Member
    Join Date
    Jun 1999
    Location
    Victoria, Australia
    Posts
    23

    Post

    you need to add this command to the on load sub of your form

    If Command$ = "" Then
    'if no file are loaded
    Else
    'load up - file
    End If

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Posts
    24

    Post

    It worked! Thanks!



    ------------------
    Doomstar
    http://come.to/Doomstar

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