open-with

How can I create a “Open with” list as in Explore in my own application

試著忘記壹切 提交于 2019-11-30 15:42:21
问题 In my application the user can select reference to file, for example a image file. I would like to make button with a arrow that opens a list with the programs installed on the system witch can open this file type. I know that I can get the program names from the registry "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts", but how can I filter the entries out that have no meaning - "DllHost.exe, miaui.exe, etc." And how can I open the file with program that the

C# Windows 'Open With >' Context menu behaviour [duplicate]

我的未来我决定 提交于 2019-11-26 09:52:17
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Filetype association with application (C#) I\'m writing a C# Windows app to visualise and modify \'.build\' files (nant scripts). I would like the user to be able to right click on a .build file in windows explorer and select the \'Open With >\' option to allow the file to be modified in my app. What does my program need to support in-order to work with this mechanism? What might my program need to do to Windows