Solved

swapping items in two listboxes in a Windows Application

Posted on 2006-07-17
3
336 Views
Last Modified: 2010-08-05
Does anyone have code that does the following:

A form has two listboxes side-by-side.  Between the listboxes are 4 buttons that have text like this:

">>"
">"
"<"
"<<"

Initially the left listboxes contains items.  If you highlight items and press the ">" button, the item disappears from the left listbox and appears in the right listbox.  If you click the ">>" button, all of the items in the left are moved to the right.  The same behavior applies to the other two buttons but in the reverse direction.  Surely, you've seen this kind of functionality in some MS applications.

Thanks.

0
Comment
Question by:mock5c
3 Comments
 
LVL 35

Accepted Solution

by:
mrichmon earned 500 total points
Comment Utility
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now