Multiple Select in ComboBox [VB6]
Given a Form [Form1] with a ComboBox [cbText].
Currently the ComboBox is a dropdown that allows the user to select one of the choices, what I need is to extend this behavior so that the user can (if required) select more then one of the choices at a time.
Something similar to holding down Ctrl and selecting multiple choices from the list.
Can this be done?
Also what effect will this have on the display?
Meaning, currently the cbText starts blank, I click the dropdown arrow and pick a choice, this choice is then placed in the cbText. What happens if I have multiple Selections? What is placed in the cbText combobox (that we see)?
Re: Multiple Select in ComboBox [VB6]
Quote:
Originally posted by Shaitan00
Given a Form [Form1] with a ComboBox [cbText].
Currently the ComboBox is a dropdown that allows the user to select one of the choices, what I need is to extend this behavior so that the user can (if required) select more then one of the choices at a time.
Something similar to holding down Ctrl and selecting multiple choices from the list.
Can this be done?
Also what effect will this have on the display?
Meaning, currently the cbText starts blank, I click the dropdown arrow and pick a choice, this choice is then placed in the cbText. What happens if I have multiple Selections? What is placed in the cbText combobox (that we see)?
Combo box can show the items, list box will store them
Real simple...create a combo on top of a list box. Load the values in the combo box. In the combo box click event do this:
lstBox.AddItem cbo.Text, index