在运行时使用桌面应用程序中的C#更改仅选定列表框项目的颜色 [英] Change the color of only selected listbox item at runtime using C# in desktop application

查看:70
本文介绍了在运行时使用桌面应用程序中的C#更改仅选定列表框项目的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发桌面应用程序.前端:Visual Studio2010.
是否可以更改列表框中仅选定项目的颜色(前景和背景)?
mousehover事件有可能吗?
请提出更好的解决方案

I am developing desktop application.Front end:Visual studio 2010.
Is it possible to change the color(foreground & background) of only selected item in the ListBox?
is this possible with mousehover event?
Please suggest the better solution

推荐答案

你好

看这个:

如何更改ComboBox所选项目的前景色?

并请标记您的问题(单击改进问题"),然后如果真的是WinForm,则指定WinForm.
Hello

Look at this:

How to change ForeColor of ComboBox''s Selected Item?

And please Tag your question (click on improve Question) and specify WinForm if your really mean WinForm.


这篇关于在运行时使用桌面应用程序中的C#更改仅选定列表框项目的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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