listbox/checklistbox autocomplete

B

Bernie Yaeger

Is there any way to get a listbox or a checklistbox behave in an
autocomplete manner, such that given 'two', 'three', 'water', 'them' would
bring the selection to 'two' (not 'water') when I key in 'tw'? I know using
various autocomplete routines I can do this with a combobox, but I need to
do it with either a listbox or a checklistbox.

Thanks for any help.

Bernie Yaeger
 
B

Bernie Yaeger

Hi Cor,

I cannot get your code to work with a listbox because there are no
selectionstart and selectionlength properties. Could you try to modify your
code so that it works for a listbox? I have tried, but without any success.

Tx,

Bernie
 
C

Cor Ligthert

Bernie,

I think that you should create a static textbox in the code and simulate how
the textbox works in the combobox (as well the backspace etc.).

I don't like this kind of programming on the position, so try it yourself
first.

Cor
 

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

Top