如何更改checkedlistbox选择颜色? [英] How can I change checkedlistbox selection colour?
本文介绍了如何更改checkedlistbox选择颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改checkedlistbox选择颜色?
如果是列表框我们有DrawItem事件。如果在checkedlistbox中有这样的事件?
我尝试过:
如何更改checkedlistbox选择颜色?
如果是列表框我们有DrawItem事件。如果在checkedlistbox中有这样的事件?
How can i change checkedlistbox selection colour?
in case of list box we have DrawItem event. if any event like this in checkedlistbox ?
What I have tried:
How can i change checkedlistbox selection colour?
in case of list box we have DrawItem event. if any event like this in checkedlistbox ?
推荐答案
检查一下。测试工作正常。
c# - 如何动态更改/设置checkedListBox项前色 - 堆栈溢出 [ ^ ]
使用链接中提供的代码创建一个类文件
构建解决方案。
现在您将获得控件工具箱中的(CustomCheckedListBox
)。
将控件拖放到表单(设计)中。
Check this. tested works fine.
c# - How to dynamically change / set checkedListBox item fore colour - Stack Overflow[^]
Create a class file with the code provided in the link
build the solution.
Now you will get the control (CustomCheckedListBox
) in the ToolBox.
Drag and drop the control in the Form (Design).
这篇关于如何更改checkedlistbox选择颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文