有的时候下拉框中的元素过多不好查询,可以考虑进行模糊过滤查询。

  在类文件的designer.cs中找到定义combox的模块,加入以下两行代码即可:

this.combox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.combox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;

  

  

相关文章:

  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
猜你喜欢
  • 2022-12-23
  • 2021-11-16
  • 2021-08-24
  • 2022-12-23
  • 2022-02-21
  • 2021-10-20
  • 2021-10-07
相关资源
相似解决方案