如果单击菜单项,如何使菜单项看起来不同 [英] How Do I Make A Menustrip Item Look Diferent If You Click On The Item

查看:113
本文介绍了如果单击菜单项,如何使菜单项看起来不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们,我在C#表单上有一个菜单栏,并在其上的每个按钮上添加了图片,它会根据您所按的按钮更改我的页面.我希望按下的按钮在视觉上发生变化,以便您知道自己在哪个页面上.谁能帮忙. tnx

hay guys, i have a menustrip on my c# form and added pictures to each button on it, it changes my page depending what button u press. i want the pressed button to change visually like so you know what page you are on. can anyone help. tnx

推荐答案

您可以使用ToolStripRenderer使MenuStrip看起来与众不同.请参阅这些有用的文章.
在C#中自定义Visual Studio 2008风格的MenuStrip和ToolStrip渲染器 [ ^ ]
针对ToolStrip,MenuStrip和StatusStrip控件的自定义渲染 [ ^ ]
You can use ToolStripRenderer to make a MenuStrip look different. See these helpful articles.
Custom VisualStudio 2008-style MenuStrip and ToolStrip Renderer in C#[^]
Custom Rendering for the ToolStrip, MenuStrip, and StatusStrip controls[^]


这篇关于如果单击菜单项,如何使菜单项看起来不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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