Results 1 to 5 of 5

Thread: File Association

  1. #1

    Thread Starter
    Addicted Member kake_fisk's Avatar
    Join Date
    May 2008
    Posts
    207

    File Association

    I've tried to search google, for file association in vb, but i always get errors...
    Somethimes i get error like, can't edit hkey_class_root or something...

    So can anyone explain how to make my own file extension?

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

    Re: File Association

    Did you try searching our CodeBank? There are a few examples there, such as:
    http://www.vbforums.com/showthread.p...le+association
    http://www.vbforums.com/showthread.p...le+association

    As to the error.. what kind of user are you logged in to Windows as (eg: admin/power user/limited user)?
    What code are you using, and where does the error occur?

  3. #3

    Thread Starter
    Addicted Member kake_fisk's Avatar
    Join Date
    May 2008
    Posts
    207

    Re: File Association

    I get error no acess to registry key HKEY_CLASSES_ROOT\.extname.
    But i think it is cause i have vista, so does anyone know how to get this working in vista, and yes, i'm administrator...

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

    Re: File Association

    How about this part:
    Quote Originally Posted by si_the_geek
    What code are you using, and where does the error occur?
    It would also help to know exactly what the error is (as that tells us what the problem is).

  5. #5

    Thread Starter
    Addicted Member kake_fisk's Avatar
    Join Date
    May 2008
    Posts
    207

    Re: File Association

    That it isn't allowed to acess my registry.
    But i can't directly translate it cause i have norwegian language...

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