|
-
Aug 13th, 2004, 09:58 AM
#1
Thread Starter
Hyperactive Member
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)?
-
Aug 13th, 2004, 10:17 AM
#2
Can't be done with a drop down but can be done with a list box, MiltiSelect= True.
TG
-
Aug 13th, 2004, 10:22 AM
#3
Banned
Re: Multiple Select in ComboBox [VB6]
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
-
Aug 13th, 2004, 10:53 AM
#4
Thread Starter
Hyperactive Member
Not 100% sure I follow you jhermiz.
Why would I need a List box AND a Combo box to accomplish this task? Can't I just replace the current Combo Boxes with List Boxes and Enable the Multiple Select?
Is there a huge difference (functionality wize) between the list and combo boxes that would warrent using both?
(note that my combo boxes are deeply integrated into my application, is it that big of a change?)
Please elaborate.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|