Configuration Form

johnadonaldson

Well-known member
Joined
Nov 9, 2005
Messages
48
Programming Experience
10+
I have seen in other Applications where a there was a Form that has multi text/combo boxs on the left side and a large textbox on the right with a ADD and REMOVE buttons inbetween. Is there a control that makes this or do I need to create this from scratch.

I don't mind making this from scratch, just don't like to re-envent the wheel all the time. LOL
 
In the left side of the form will be various listboxes with selectable items.
I will highlite an item. click the ADD button and put that item into the
listbox on the right side. OR highlite an item in the listbox on the right
and remove it from the list.
 
So you want two ListBoxes and two Buttons. You could make a UserControl that incorporated those four controls if you wanted, but I think "create this from scratch" is a bit of an exaggeration. All you need to do is handle the Click events of the Buttons and call Remove on one ListBox and Insert on the other. It's about 10 to 15 lines of code in total. You are limited by the functionality of the ListBox of course. If you want icons in the list or something like that then you need something more, although I'm sure it would be easy to find an inherited ListBox that supports images on the Net.
 
That's what I knda figured. It's not a real problem building a form like that
I just don't like to re-invent the wheel, if I don't have to. LOL
 
Back
Top