Results 1 to 5 of 5

Thread: Document Type

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Beirut, Lebanon
    Posts
    318

    Document Type

    How can I make files with a specified extension automatically open with my vb application. (of course, I want to use vb code to do that)

  2. #2
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    Create a file association in the Registry:

    http://www.mvps.org/vbnet/code/reg/association.htm

    Then read the command line for the name of the file:

  3. #3
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    You will need to create a file acossiatiaon. I have my own version but I'm attaching somebody else's because it's much shorter. Don't know his/her name to mention it but all the credirs belong to original author.

    ;-)
    Attached Files Attached Files
    Roy

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Beirut, Lebanon
    Posts
    318
    thanks, that helped a lot. but, what about the File Icon, how can I specify it?

  5. #5
    PowerPoster
    Join Date
    Aug 2002
    Location
    NY, NY
    Posts
    2,139
    In the example I've posted it's part of a structure:
    myFileType.IconPath = "c:\temp\myicon.ico"
    Roy

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