NComboBox autocomplete missing


https://www.nevron.com/Forum/Topic7041.aspx
Print Topic | Close Window

By Imanol Yurrebaso - 12 Years Ago
Hi,

I read that the NComboBoxes are "custom comboboxes written entirely from scratch", but apparently they don't have WindowsForms ComboBox features like Autocomplete. Am I missing something or it's just not implemented?

Thank you.
By Nevron Support - 12 Years Ago
Hi Imanol,

Check the code snipped below.

nComboBox1.Editable = true;
nComboBox1.EditControl.AutoCompleteMode = AutoCompleteMode.Suggest;
nComboBox1.EditControl.AutoCompleteSource = AutoCompleteSource.CustomSource;

...

Hope it helps.
By Imanol Yurrebaso - 12 Years Ago
Thanks a lot, I had missed that. However, when I try this other source:

"nComboBox2.EditControl.AutoCompleteSource = AutoCompleteSource.ListItems;"

I get this error:

"The value AutoCompleteSource.ListItems is not applicable to the TextBox control."

I can just leave the CustomSource and fill it with an AutoCompleteStringCollection, and I will get the desired result, but is that the only way?

Thanks!
By Nevron Support - 12 Years Ago
Hi Imanol,

This is part of TextBox functionality, which we use when NComboBox is editable.
By Imanol Yurrebaso - 12 Years Ago
Thanks for your response.