从列表框1到列表框2添加选择的项目 [英] from listbox 1 to listbox 2 add the selectd item
问题描述
我的屏幕上有两个列表框。
列表框1按钮列表框2
RK加载RK
ck ADD CK
当我点击加载时
按钮所有图表代码都是从数据库中检索出来的。
然后我选择了简洁的代码并点击选择了教师的ADD按钮来自
Listbox 1转到列表框2.
工作正常。
但我希望当我从列表框1中选择教师代码并单击添加按钮转到listbox2。选择列表框1中的教师代码将清除并转到listbox2。
示例如下;
listbox1 listbox2
RK ADD Rk
当我点击添加按钮,listbox1进入listbox2并清除列表框中的seleted教员
i have two list box in my screen.
Listbox 1 Button Listbox 2
RK Load RK
ck ADD CK
when i click the load button all facutly code are retrieved from the database.
then i select the facutly code and click the ADD Button that selected faculty from
Listbox 1 goes to Listbox 2.
it is working fine.
but i want when i select the faculty code from Listbox 1 and click the add button goes to listbox2. that select the faculty code from Listbox 1 will be clear and go to listbox2.
example as follows;
listbox1 listbox2
RK ADD Rk
when i click add button that listbox1 goes to listbox2 and clear that seleted faculty in listbox
推荐答案
ListBox2.Items.Add(item)
ListBox1.Items.Remove(item)
http ://onurag-dotnetfunda.blogspot.in/2012/04/list-box-in-window-form-using-c.html [ ^ ]
请检查这是否是你想要的。
http://onurag-dotnetfunda.blogspot.in/2012/04/list-box-in-window-form-using-c.html[^]
Please check if this is what you wanted.
这篇关于从列表框1到列表框2添加选择的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!