在检查清单框中显示检查的项目 [英] display checked items in checkedlist box

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

问题描述

大家好!


我有两个组合框
c1 {1,2,,3,4,5,6,7,8,9}
c2 {a,b,c,d,e,f,d}


和一个列表框
list1 {aa,bb,cc,dd,ee,ff,gg,hh,ii,jj}

表单加载期间,两个组合框和选中的列表框已被填充

现在,当我从c1中选择1
和b来自c2
然后应该检查aa和bb,而其他所有都保持未选中状态
等等...

..
.

hi to all!


i have two comboboxes
c1{1,2,,3,4,5,6,7,8,9}
c2{a,b,c,d,e,f,d}


and a checed list box
list1{aa, bb, cc, dd, ee, ff, gg, hh, ii, jj}

two comboboxes and and checked listbox is already filled during form load

now when i select 1 from c1
and b from c2
then aa and bb should be checked and all others remain unchecked
and so on......

..
.

推荐答案

现在我必须在这里写什么才能设置在lictbox中选中的项目"


"now what i have to write here to set items checked in lictbox"


cl1.Items[3].Checked=true;


这篇关于在检查清单框中显示检查的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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