Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. file association

file association

Scheduled Pinned Locked Moved C#
windows-adminjsonhelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bwagz
    wrote on last edited by
    #1

    I was wondering how to create a file association in my app. So when the user double-clicks on a saved file (a file that was created using serialization), the program will execute and open the file. Also, how can a file icon association be created in the registry? I wasn't able to find to much on the web doing a search. Any help greatly appreciated. Brian :confused:

    H 1 Reply Last reply
    0
    • B bwagz

      I was wondering how to create a file association in my app. So when the user double-clicks on a saved file (a file that was created using serialization), the program will execute and open the file. Also, how can a file icon association be created in the registry? I wasn't able to find to much on the web doing a search. Any help greatly appreciated. Brian :confused:

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      This need to be done as part of your setup routine, like an installation program. Visual Studio .NET has a deployment project that makes this very easy. Otherwise, read Creating a File Association[^] in the Platform SDK. Your setup routine should not hard-code the path to your executable. Using VS.NET's Windows Installer project you can associate your executable file with the extension so that the right path is used. In less "automated" setup environment you associate the executable's file path with the target application for that file extension. Just try it out. It's quite easy. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups