突出显示列出项目 [英] highlight to list items

查看:71
本文介绍了突出显示列出项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在列表框启用时突出显示列表框中的所选项目false

i want to highlight selected item in listbox when listbox is enable false ???

推荐答案

当列表框未启用时,则不能选择任何项目用户。但是,您可以使用 SelectedIndex 属性以编程方式执行此操作,例如
when the listbox is not enabled then no item can be selected by a user. However you can do it programmatically by using the SelectedIndex property e.g.
ListBox1.SelectedIndex=2


这篇关于突出显示列出项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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