Solved

swapping items in two listboxes in a Windows Application

Posted on 2006-07-17
3
341 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 35

Accepted Solution

by:
mrichmon earned 500 total points
ID: 17124481
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

724 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