简体   繁体   中英

How can I add an item to the right click menu on the desktop

I have an application that runs in the background and changes the user's desktop background at set intervals. I would like to make it possible for the user to right click the desktop background and have the option to download the photo or advance to the next background, in addition to the normal windows right click options. Is there any way to do this in C#?

The target OS is Windows 8.1, but if it could work across several versions of Windows, that would be great.

Thanks to kennyzx for suggesting Sharp Shell context menu . It's a relatively easy library to understand for someone who is not use to using some of the deeper C# concepts yet.

You should do this in a setup and deployment project. This article shows the steps to add a menu option in the desktop context menu

最简单的方法是按此处所述编辑注册表HKEY_CLASSES_ROOT\\DesktopBackground\\shell ://www.howtogeek.com/107965/how-to-add-any-application-shortcut-to-windows-explorers-context-menu /

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM