我正在使用ComboBox编写Windows Forms应用程序。它是一个带有SubmitAppend的DropDownList。当用户键入内容时,它应定位在与键入字母相符的项目上。如果他们键入速度相当快,这将按预期工作。如果击键的时间很短,它就会重新开始以为它是一个不同的值。不幸的是,我有很多手指打字员(甚至没有两根手指),而且打字速度不够快。
这是设计者创建代码的地方...
this.cbxItemDescription.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.cbxItemDescription.AutoCompleteSource = sysem.Windows.Forms.AutoCompleteSource.ListItems;
this.cbxItemDescription.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbxItemDescription.FormattingEnabled = true;
this.cbxItemDescription.Location = new System.Drawing.Point(75, 2);
this.cbxItemDescription.Name = "cbxItemDescription";
this.cbxItemDescription.Size = new System.Drawing.Size(300, 21);
this.cbxItemDescription.TabIndex = 2;
this.cbxItemDescription.Visible = false;
this.cbxItemDescription.SelectedIndexChanged += new System.EventHandler(this.cbxItemDescription_SelectedIndexChanged);`
它是按行加载的...
cbxItemDescription.Items.Add(value to be added);
有人可以告诉我如何延长间隔时间,以适应这些慢打字员吗?
我找到了WPF组合框的答案,但是除非我不理解解决方案,否则它们将不适用于Windows窗体。