i saw http://www.b4x.com/forum/questions-help-needed/2962-autocomplete-combo-box.html
they use a listbox, but i don't wanna use it...
i wanna search by name in my DB, so...
write a letter or a few letters and autocomplete
now i use a textbox write a letter and the names appears in a combobox
but i prefer write in the combobox, and not use a textbox... .
i don't know if i explain well.
Is this what you are looking for ?
Inspired by the code from your link and using the Door library.
Unfortunately it works only on the desktop because SelectionStart and SelectionLength for a ComboBox are not supportd on the device, it seems also that the KeyUp event is not supportd on the device.
For the device you could mix the code below with the one in the other thread.
Attached a version that works also on the device.
With a TextBox covering the ComboBox.
Using the Door library.
Unfortunately the KeyUp event for a TextBox is also not supported on the device, even though it should be according to MS's documents.
So I use the KeyDown and TextChanged events.
Attached a version that works also on the device.
With a TextBox covering the ComboBox.
Using the Door library.
Unfortunately the KeyUp event for a TextBox is also not supported on the device, even though it should be according to MS's documents.
So I use the KeyDown and TextChanged events.