如何从一个列表框中选择两个列表框项 [英] how to select the two listbox item from one listbox

查看:85
本文介绍了如何从一个列表框中选择两个列表框项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个列表框项目。





Listbox1 Listbox2



Gs G sekar

Mk M Karthik



当我选择Listbox1项目Gs和另一个Listbox2项目时G Sekar也默认想要选择列表框2项目。





我该怎么办?



please帮助我。



谢谢和问候,

Narasiman P

i have two list box items.


Listbox1 Listbox2

Gs G sekar
Mk M Karthik

when i select the Listbox1 item Gs and another Listbox2 item G Sekar also default want to select the Listbox2 item.


how can i do?

please help me.

Thanks and regards,
Narasiman P

推荐答案

使用 ListBox.SetSelected 方法 [ ^ ]。


这篇关于如何从一个列表框中选择两个列表框项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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