显示窗口(文件/目录)在C#WinForms应用程序上下文菜单 [英] Showing windows (file/directory) context menu in c# winforms application
本文介绍了显示窗口(文件/目录)在C#WinForms应用程序上下文菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想显示WinForms应用程序标准的文件/目录上下文菜单 - 我想,使用户,因为他可以在资源管理器中做文件的东西我的应用程序。
I'm trying to display standard file/directory context menu in WinForms application - I'd like to enable the user to do things with files in my application as he could in Explorer.
应该有两个选项
- 某些系统调用弹出的右键菜单
- 阅读一切从系统上下文菜单,然后将其插入到我的上下文菜单
你能请点我在正确的方向?谢谢
Could you please point me in the right direction? Thanks
推荐答案
我已经写了一个.NET库,允许这一点。你可以在这里找到它:
I have written a .NET library to allow this. You can find it here:
HTTP://gong-shell.sourceforge。净/
您正在寻找的类是ShellContextMenu该库中。
The class you're looking for is ShellContextMenu within that library.
这篇关于显示窗口(文件/目录)在C#WinForms应用程序上下文菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文