Using Keyboard and ComboBox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top