在listview中显示shell上下文菜单c# [英] show shell context menu in listview c#
问题描述
您好。
我想点击listview中的项目,显示shell上下文菜单。
喜欢这样:
hello.
I want when i clicked on a item in listview ,show shell context menu.
like this:
http:// www.uploadscenter.com/vy0tzh2fsg4v
http://www.uploadscenter.com/vy0tzh2fsg4v
用于txt file.bmp的ContextMenu ==> 1.7 MB(尺寸:839 * 728)
ContextMenu for txt file.bmp ==> 1.7 MB (dimensions: 839*728)
请回答。
----------- -------------------------------------------------- -------
please Answer.
--------------------------------------------------------------------
在我发布的图片中,我解释得非常好......但现在我用语言说:
i有一个列表视图有物品。
项目喜欢文件夹和文件(* .txt,* .bmp,* .mp3,* .jpg,...)
$ b当我右键单击某个项目时我想要$ b(例如:"New Text Document.txt"),显示"* .txt"的shell shell contextMenu。在Windows中的文件!
in image which i posted, i explained very good ... but now i say by word:
i have a listview which have items .
items are liked to folder and files(*.txt , *.bmp , *.mp3 , *.jpg , ...)
I want when i right clicked on a item (for example : "New Text Document.txt"), show shell contextMenu of "*.txt" file in windows !
推荐答案
  ;
AFAIK,没有可用的直接API或系统调用。
AFAIK, there is no direct API or systemcall available which you can use.
开源库"gong-shell"应该是一个很好的起点:
The open source library "gong-shell" should be a good starting point:
您可以正确地开始使用上述库(当然,在检查其装备的许可条款后)。
You can right way start using the above library for your purposes (of course, after checking its license terms for your fitment).
此外,有关详细说明,请参阅以下链接中的Raymond Chen博客:
Also, for a detailed explanation, you may please refer to Raymond Chen's blog in the below link:
希望能帮到你。
(如果它可以解析您的查询,请标记为答案。如果有帮助,请提醒。)
(Please mark as answer if it resolves your query. Please upvote if it is helpful.)
问候,
Rajesh
这篇关于在listview中显示shell上下文菜单c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!