I have a program, MyApp, where I can open a text file, which works great. The application is created in C# with Visual Studio 2003, .NET 1.1.

But under the [right-click on file context-menu in Explorer -> "Open With"] just the icon is shown, not the application name or description.

As shown here: Open With context-menu (http://data.fuskbugg.se/skalman02/4e450ba043602_openwith.png)

If we look at Notepad++ in the image that text seems to be the description text, same as under File properties general tab for notepad++.exe.

What value is used there? How do I set that value?

[EDIT]: The registry entries automatically generated when using "open With -> browse for application" are: HKEY_CLASSES_ROOT\Applications\MyApp.exe\shell\open\command (default) under the key command is: "correct path" "%1"

有帮助吗?

解决方案

You need to set the AssemblyTitle in AssemblyInfo.cs. After doing this you may need to remove all the registry entries and re-install your aplication.

(so other people with the same problem don't need to search through the comment thread)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top