Profile Picture

NComboBox autocomplete missing

Posted By Imanol Yurrebaso 12 Years Ago
Author
Message
Imanol Yurrebaso
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 15, Visits: 3
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.

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 10 hours ago
Posts: 3,054, Visits: 4,012
Hi Imanol,

Check the code snipped below.

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

...

Hope it helps.

Best Regards,
Nevron Support Team



Imanol Yurrebaso
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 15, Visits: 3
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!

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: 10 hours ago
Posts: 3,054, Visits: 4,012
Hi Imanol,

This is part of TextBox functionality, which we use when NComboBox is editable.

Best Regards,
Nevron Support Team



Imanol Yurrebaso
Posted 12 Years Ago
View Quick Profile
Junior Member

Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)Junior Member (15 reputation)

Group: Forum Members
Last Active: 8 Years Ago
Posts: 15, Visits: 3
Thanks for your response.



Similar Topics


Reading This Topic