Where can I find documentation about adding a context menu (EDIT: jumplist) to a windows 7 application? You know, when you right click on the application icon on the taskbar. Can I do that using .NET? Or do I need to use native code?
Thank you!
With a quick registry tweak, you can add any application to any Windows Explorer context menu. You can even add application shortcuts to your desktop’s context menu and launch your favorite applications just by right-clicking on your desktop.
You can even add application shortcuts to your desktop’s context menu and launch your favorite applications just by right-clicking on your desktop. We’ve previously covered adding an “Open with Notepad” option to any file’s right-click menu in Windows Explorer, but you can do much more than that.
To remove any apps added to the Windows 11 context menu in this manner, open the Registry Editor and navigate to the same set of keys and delete the keys associated with those apps. Be your company's Microsoft insider by reading these Windows and Office tips, tricks, and cheat sheets.
With the release of Windows 11, Microsoft decided to shorten the length of the standard context menu in Windows Explorer (reached by right-clicking a filename or folder). The idea was to show only the most commonly used potential apps for that specific file type, which sounds good in theory, but it is not always the best solution for power users.
What I believe you are looking for is the Windows® API Code Pack and you want create a Jump List for your application.
What you see in a Jump List depends entirely on the program.Jump Lists don't just show shortcuts
to files. Sometimes they also provide quick access to commands for things like composing new e‑mail messages or playing music.
Example:
using Microsoft.WindowsAPICodePack.Taskbar;
using Microsoft.WindowsAPICodePack.Shell;
JumpList list = JumpList.CreateJumpList();
JumpListCustomCategory category = new JumpListCustomCategory("Links");
category.AddJumpListItems(new JumpListLink("http://www.microsoft.com", "Microsoft"));
list.AddCustomCategories(category);
list.Refresh();
NOTE: The above example is untested, but it should just work™.
I do not know how to make it a command that interacts with the active instance, e.g. like iTunes tasks. I suspect they do an inter-process communication to trigger those actions.
HTH,
If you mean the jumplist, you have to do it using WPF (.NET)
EDIT: See here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With