winforms - 在 Windows 窗体应用程序中输入缓慢的问题
问题描述
我正在编写一个带有 ComboBox 的 Windows 窗体应用程序。它是一个带有 SuggestAppend 的 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 ComboBoxes 的答案,但除非我不理解解决方案,否则它们不适用于 Windows 窗体。
解决方案
推荐阅读
- minimax - Minimax 单独有效,但带有 alpha-beta 修剪的 minimax 不起作用
- python - 为什么类实例装饰器会跳过代码?
- git - 如何创建一个带有空提交的 Git 分支?
- html - 使用微调器创建提交按钮
- apigee - 如何将路径附加到 apigee 上的传出请求
- javascript - PDF 文件未在 Safari 中加载,有时在 Chrome Vue JS 中也未加载
- azure - 来自共享映像库的 Terraform Azure 虚拟机
- android - 在 android studio 中更改 gitlab 帐户
- node.js - 有人在 Blazor 的 webassmbly 项目中使用过 BPMN-JS 吗?
- azure - Terraform Kubernetes持久存储设置没有连接拨号tcp错误