autocomplete?

klaus

Expert
Licensed User
Longtime User
Could you explain what you mean with 'autocomplete a combobox'.

For me it works.

Best regards.
 

Attachments

  • ComboBox1.jpg
    ComboBox1.jpg
    16.6 KB · Views: 212
  • ComboBox2.jpg
    ComboBox2.jpg
    15.7 KB · Views: 207

klaus

Expert
Licensed User
Longtime User
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.

Best regards.
 

Attachments

  • ComboBoxAutocomplete.sbp
    1.5 KB · Views: 219

klaus

Expert
Licensed User
Longtime User
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.

Best regards.
 

Attachments

  • ComboBoxAutocomplete2.sbp
    1.8 KB · Views: 210

directorfw

Member
Licensed User
Longtime User
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.

Best regards.

thank you.... it works perfect!!!!!!:icon_clap:
 
Top