By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,168 Members | 2,598 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,168 IT Pros & Developers. It's quick & easy.

listbox/checklistbox autocomplete

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Bernie,

I once wrote this piece of code for you, is there still something wrong in
it?

http://groups-beta.google.com/group/...71d7cb3c?hl=en

You did not tell that.

Cor
Nov 21 '05 #2

P: n/a
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

"Cor Ligthert" <no************@planet.nl> wrote in message
news:O$****************@TK2MSFTNGP09.phx.gbl...
Bernie,

I once wrote this piece of code for you, is there still something wrong in
it?

http://groups-beta.google.com/group/...71d7cb3c?hl=en

You did not tell that.

Cor

Nov 21 '05 #3

P: n/a
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
Nov 21 '05 #4

P: n/a
Hi Cor,

OK - I'll give it a try.

Tx,

Bernie

"Cor Ligthert" <no************@planet.nl> wrote in message
news:uf**************@TK2MSFTNGP15.phx.gbl...
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

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.