Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron User Interface for .NET
»
NComboBox AutoComplete single character item select not working
NComboBox AutoComplete single character item select not working
Post Reply
NComboBox AutoComplete single character item select not working
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Nevron Support
Nevron Support
posted 11 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hello Craig,
We will fix this problem in the next release.
Best Regards,
Nevron Support Team
Reply
Like
0
Craig Swearingen
Craig Swearingen
posted 11 Years Ago
ANSWER
Topic Details
Group: Forum Members
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;
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search