[c#] menuStrip,添加checkBox [英] [c#] menuStrip, add checkBox

查看:183
本文介绍了[c#] menuStrip,添加checkBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以不以编程方式向menustrip添加复选框?我只能添加menuitem,combobox和textbox。我需要添加复选框。

我有一个叫做语言的menuitem,这个项目每个语言都有三个复选框,每个复选框都有图标。

或者我可以使用三个项目的combobox,但我必须为每种语言添加一个标志的图标。

我需要这样的东西,但绝对不能以编程方式添加。



有什么建议吗?

Is it possible to add checkbox to menustrip not programmatically? I can only add menuitem, combobox and textbox. I need to add checkbox.
I have menuitem called language and this item will have three checkboxes for each language and each checkbox will have icon.
Or I could use combobox with three items, but i have to add icon of a flag for each language.
I need something like this, but definitely must not be added programmatically.

Any suggestions?

推荐答案

检查添加到条带的菜单项的Checked属性。请注意,您不能将CheckBox行为添加到顶级菜单,而是添加到子项目。
Check the Checked Property of the menu items added to the strip. please note that you cannot add CheckBox behavior to the top level menu but to child items.


以下是CP中的两篇文章可能对您有所帮助:



如何在ComboBox中显示图像在5分钟内? [ ^ ]

Image ComboBox控制 [ ^ ] < br $>


祝你好运,

OI
Here are two articles in CP which might help you:

How to Display Images in ComboBox in 5 Minutes?[^]
Image ComboBox Control[^]

Good luck,
OI


这篇关于[c#] menuStrip,添加checkBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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