What is the best .net alternative to dde for file associations?

后端 未结 1 1706
没有蜡笔的小新
没有蜡笔的小新 2021-01-24 14:14

I have an MDI Windows Forms application (.net 2008) that allows the user to associate various file types with the application. I currently do this with a registry entry somethin

1条回答
  •  天涯浪人
    2021-01-24 15:09

    Well ideally, you could use regular file association techniques (doc), along with some form of inter-process communication to organize how your program handles subsequent launches.

    For instance, when your program starts, check if another instance is already open. If so, pass any parameter data to the existing instance, and quit. The existing instance then handles the data appropriately.

    Here (link) is a good SO answer to get you started with that.

    0 讨论(0)
提交回复
热议问题