添加contextmenu图标 - VB.NET [英] Add contextmenu icon - VB.NET

查看:94
本文介绍了添加contextmenu图标 - VB.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在寻找如何向notifyicon上下文菜单项添加图标。 notifyicon和contextmenu以及menuitems都只从后端代码中添加,而不是从拖放中添加。请帮助。谢谢。



我尝试了什么:



无需检查。我用Google搜索了。找不到任何东西。

Hello,
I am in search for how to add icons to the notifyicon contextmenu items. The notifyicon and contextmenu and menuitems all are added from the backend code only and not from the drag and drop. Kindly help. Thank you.

What I have tried:

Nothing to check. I have Googled. NOthing found.

推荐答案

我相信你必须自己画画。 CodeProject上有一篇文章提供了一个可以调整的详细示例 - 在VB.NET中使用OwnerDraw菜单 [ ^ ]
I believe you have to draw the menu yourself. There is an article here on CodeProject that gives a detailed example that could be adapted - Working with OwnerDraw Menus in VB.NET[^]


这篇关于添加contextmenu图标 - VB.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆