Using Keyboard and ComboBox

B

Brian

Hello All,
I have a combobox that has a list of items.
I am adding items from cboCom1 into cboCom2.
I have code that moves the items when they are double clicked, but I need to
do this with the keyboard.

How do I multi select from the combobox using the keyboard?

OR

How can I keyboard select an item from the combobox (cboCom1) and have the
focus stay there after pressing RETURN (which is the keypress that is doing
the selection)?

Thanks in advance,

Brian
 
K

Klatuu

Combo boxes cannot do multi select. You may find it easier to use a List Box
control which is Multi Select capable.
Then you don't have to do anything except let the user select the item or
items in the list. Once they have completed the selections, you can use the
List Box's ItemsSelected collection to accomplish whatever you want. There
is a good example of how to do this in VBA Help - look up ItemsSelected
 
Top