Combox Listbox ??

  • Thread starter Thread starter Charles A. Lackman
  • Start date Start date
C

Charles A. Lackman

Hello, I have a combox that I am trying to get to work in the following
fashion.

As you type in the combox that the item that matches what you are type is
selected.

as you type a last name:

Leyman

when L is typed
'Laner' is selected (first item that starts with L)

When Le is Typed
'Leans' is selected (first items that starts with La)

When Ley is Typed
'Ley' is selected (first items that starts with Lay)

etc.

Am I using the wrong control. setting the combobox property to DropDownList
comes close but it does not allow for typing the name it only goes to the
first letter in the Item (i.e. 'L')

Any suggestions will be greately appreciated.

Thanks,
Chuck
 
Hi Peter,

Everyone misses the point on this - what he wants is a dropdownlist that
autocompletes.

Bernie Yaeger
 
Hi,

It can be done almost in the same manner. You just need a global string
where you save the user's input and then in KeyUp event you search for it in
combobox and set the appropriate index.
 
Hi Peter,

I wish it were that simple. I've tried it and it doesn't work.

Can you have a crack at it? If you find a solution, please let me know.

Bernie
 
Back
Top