【发布时间】:2016-04-05 05:56:44
【问题描述】:
正如标题所示,我想根据文本框中的内容过滤组合框中的值。组合框从列表中获取值。我已经尝试过AutoCompleteMode 和AutoCompleteSource,但是当我使用它们时它不允许我向组合框添加任何值。组合框包含以下类的列表的值。
class Groep
{
//Fields
private string naamGroep;
//Properties
public string NaamGroep
{
get { return this.naamGroep; }
set { naamGroep = NaamGroep; }
}
//Constructor
public Groep(string naam)
{
this.naamGroep = naam;
}
这是列表:
List<Groep> Groepen = new List<Groep>();
我有两个文本框。一个用于将项目添加到列表中,另一个用于过滤组合框。
【问题讨论】:
标签: c# filter combobox textbox