简体   繁体   English

将图标添加到MenuItem vb.net

[英]Add icon to MenuItem vb.net

I use MainMenu and ContextMenu, MenuStrip and ContextMenuStrip not looking like Windows 7, I use Windows 7. 我使用MainMenu和ContextMenu,MenuStrip和ContextMenuStrip看起来不像Windows 7,我使用Windows 7。

MainMenu菜单项

带图标的MenuItem

How to add icon?, add icon only, no change the menuitem style, only add icon. 如何添加图标?,仅添加图标,不更改菜单项样式,仅添加图标。


MenuItem with icon: 带图标的MenuItem: 带图标的MenuItem MenuItem with icon and style changed: 带有图标和样式的MenuItem已更改: 带图标的菜单项(样式已更改)

RightClick MenuItem --> goto Properties --> 
choose Image option --> Click Add button --> import user image 

Mainmenu is obsolete, if you think use obsolete controls for appearance reasons, you can't. Mainmenu已过时,如果您出于外观原因考虑使用过时的控件,则不会。 Icons on MainMenu is only with a draw attribute, but it changes the normal appearance with Windows Old one. MainMenu上的图标仅具有draw属性,但它会更改Windows Old的正常外观。

The appearance is not the most important in a program, if you like the Windows 7 controls and icons 如果您喜欢Windows 7控件和图标,则外观在程序中不是最重要的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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