开发者

"Open with" - C# program shows just icon in Windows "Open With" context menu

开发者 https://www.devze.com 2023-03-27 21:26 出处:网络
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.

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)

0

精彩评论

暂无评论...
验证码 换一张
取 消