单击工具栏菜单项时更改其颜色 [英] change color of toolstrip menu item when click on it

查看:106
本文介绍了单击工具栏菜单项时更改其颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



大家好
我想在事件单击时更改ToolStripMenuItem的颜色


hi all
i want to change color of ToolStripMenuItem on the event click

推荐答案

在事件单击上-为时已晚:如果您这样做,没有人有足够的时间看它,因为该项目不会在点击时显示.所以为什么?那么默认的配色方案怎么了?最好不要用装饰来刺激用户.仅当UI具有某种用途时,才需要向UI添加表达功能.

-SA
On the event click — is too late: if you do it, no one will have enough time to see it, because the item won''t be shown on click. So, why? And what''s wrong with default coloring scheme? Better don''t irritate the user with decoration. You need add expressive capabilities to UI only when it serves some purpose.

—SA


this.toolStripMenuItem1.ForeColor = Color.AliceBlue;
this.toolStripMenuItem1.BackColor = Color.AntiqueWhite;


这篇关于单击工具栏菜单项时更改其颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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