在两个列表框之间添加,删除元素 [英] Add, Remove elements between two listboxes

查看:78
本文介绍了在两个列表框之间添加,删除元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有两个列表框,如图所示:


< img src =''http://img835.imageshack.us/img835/4929/listboxaddremov.jpg''border ="0''/>


我需要列表框通过按钮中的click事件在它们之间传递它们的元素.

但是我希望您能给我发送任何代码来实现我想要的功能.

在此先感谢

Hello all,

I have two listBoxes like I show in the picture:


<img src=''http://img835.imageshack.us/img835/4929/listboxaddremov.jpg'' border=''0''/>


I need that the listboxes pass their elements between them, through the click event in the buttons.

But I want that you send me please any code to implement the funtionality that I want.

Thanks in advance,

推荐答案

以下链接应帮助您完成代码.

如何将列表框项目移动到C#中的另一个列表框中. [
The following link should help you to finish your code.

How to Move List Box Items to another List Box in C#.[^]

The above code is from codeproject itself. Next time do try searching your requirements in this forum. Most of the problems are already solved here. You just need to know what and how to search

Let me know if this helps you

--
AJ


这篇关于在两个列表框之间添加,删除元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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