如果单击菜单项,如何使菜单项看起来不同

编程入门 行业动态 更新时间:2024-10-28 03:17:55
本文介绍了如果单击菜单项,如何使菜单项看起来不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

伙计们,我在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[^]

更多推荐

如果单击菜单项,如何使菜单项看起来不同

本文发布于:2023-08-06 03:35:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1309791.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:菜单项   单击

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!