Profile Picture

NComboBox AutoComplete single character item select not working

Posted By Craig Swearingen 10 Years Ago

NComboBox AutoComplete single character item select not working

Author
Message
Craig Swearingen
Problem Posted 10 Years Ago
View Quick Profile
Supreme Being

Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)Supreme Being (97 reputation)

Group: Forum Members
Last Active: 7 Years Ago
Posts: 99, Visits: 654
I have an NComboBox with an auto complete suggestion list on my window.  Some of my items are only one character long for selection.  After typing the one character and pressing Enter instead of using the character typed it will revert back to what was previously shown.  Seems to work fine when typing more than one character and pressing Enter.

Below I've added code which you can drop on a Form to experiment with this issue.  It has both an NComboBox and a WinForm ComboBox which are configured similarly.  The WinForm ComboBox works as expected.  The NComboBox has the bug mentioned.  I see this on build 13.11.26.12.

I would prefer to use the NComboBox given its other features.  Is there a workaround for this bug in it?

   string[] syms = new string[] { "a", "aa", "b", "ba", "c" };
    //Nevron combobox
    cboSymbols = new Nevron.UI.WinForm.Controls.NComboBox();
    cboSymbols.Editable = true;
    cboSymbols.Location = new System.Drawing.Point(47, 100);
    cboSymbols.Name = "cboSymbols";
    cboSymbols.Size = new System.Drawing.Size(100, 22);
    cboSymbols.TabIndex = 0;
    Controls.Add(this.cboSymbols);
    cboSymbols.Items.AddRange(syms);
    cboSymbols.EditControl.AutoCompleteMode = AutoCompleteMode.Suggest;
    cboSymbols.EditControl.AutoCompleteSource = AutoCompleteSource.CustomSource;
    AutoCompleteStringCollection ac = new AutoCompleteStringCollection();
    ac.AddRange(syms);
    cboSymbols.EditControl.AutoCompleteCustomSource = ac;
    //Windows combobox
    winComboBox = new System.Windows.Forms.ComboBox();
    winComboBox.FormattingEnabled = true;
    winComboBox.Location = new System.Drawing.Point(47, 163);
    winComboBox.Name = "winComboBox";
    winComboBox.Size = new System.Drawing.Size(121, 21);
    winComboBox.TabIndex = 1;
    Controls.Add(this.winComboBox);
    winComboBox.Items.AddRange(syms);
    winComboBox.AutoCompleteMode = AutoCompleteMode.Suggest;
    winComboBox.AutoCompleteSource = AutoCompleteSource.CustomSource;
    AutoCompleteStringCollection x = new AutoCompleteStringCollection();
    x.AddRange(syms);
    winComboBox.AutoCompleteCustomSource = x;



Nevron Support
Posted 10 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: Yesterday @ 1:54 AM
Posts: 3,054, Visits: 4,009
Hello Craig,

We will fix this problem in the next release.

Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic