views:

43

answers:

4

Is there a standard .NET control for what I call "a two pane picker", or do I have to code it by hand?

Two pane picker:

  • The left pane has a list of items.
  • The user can pick items from the left pane to put them in the right pane using buttons between the two panes.
  • Picked items in the right pane can be reordered with buttons.

An example of the "two pane picker" can be found by right clicking the Quick Access toolbar in Word 2007 and clicking "Customize Quick Access Toolbar..."

Note: If applicable, VB.NET answers preferred, but C# answers are acceptable too.

+1  A: 

There's no standard control for that. Sounds like an excellent case for a custom user/composite control.

Dave Swersky
+1  A: 

I don't know of anything like that, but its trivial to implement with two ListBoxes and some buttons. When 'Add' is clicked, do .Remove with the item at the selectedIndex from the left and .Add it to the ListBox on the right.

rmx
+1  A: 

There are no .NET Framework controls which create the functionality you describe, however it is fairly easy to implement. Here's some examples I was able to find (not tested):

Nathan Taylor
+1  A: 

There is no standard picker. You have to build it yourself or find a third party control.

wizlb