Results 1 to 2 of 2

Thread: How do i?: Associate a filetype with my application?

  1. #1

    Thread Starter
    Fanatic Member Emcrank's Avatar
    Join Date
    Jan 2009
    Posts
    566

    How do i?: Associate a filetype with my application?

    How can i go about associating my application with a filetype e.g *.safsg ? How can i get my program to open them file types when that filetype is double clicked on desktop for example. Thanks in advance

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: How do i?: Associate a filetype with my application?

    You will need to create some registry key for this. And since you're writing to the registry, the user account that run your app needs to have administrator role on the computer.
    Check out this code project article. It's shows you how to do it.
    http://www.codeproject.com/KB/vb/VBFileAssociation.aspx
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

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