Skip to main content
1-Visitor
February 26, 2010
Question

Multiselect Listbox or Alternate Solution

  • February 26, 2010
  • 2 replies
  • 6880 views
Hi all,

I am trying to create a listbox control that allows the user to select multiple items. But it seems that this option is not supported by the listbox control. Is that correct?

I thought an alternative might be to create two listboxes and allow the user to move items from the first list to the second and thus create a sort of a custom list. But I'm having problems trying to figure out how to accomplish this. What I need to happen is that once an item is selected in the first list and a button is clicked the item is moved to the second list and removed from the first. I've attached a picture of how that looks.

Any ideas or alternate solutions are very appreciated.

Regards,

Ali

2 replies

1-Visitor
February 26, 2010
You could try a scripted component based on the standard MS list box (which does support multiple selection). Note that you will have to choose some method of determining when the user has completed making his selections -- in normal useage such a list box would be part of a dialog with an OK button that indicates the user has completed his choices.
__________________
� � � � Tom Gutman
19-Tanzanite
February 27, 2010
Here's a multiselection listbox based on the MSForms 2.0 control

Richard
stillife1-VisitorAuthor
1-Visitor
February 28, 2010
Hi Richard,

Thank you very much for your sample file. I had no idea other scriptable components could be included and used. Your example was great.

Tom,

As always your help is greatly appreciated. I think I have a lot to still learn about Mathcad and I can count on you and everyone else on this site to help me along the way.

Thank you both,
Ali