对于用户控件 TextBox,我正在创建类似的属性AutoCompleteCustomSource
,AutoCompleteMode
并且AutoCompleteSource
:
public virtual AutoCompleteStringCollection AutoCompleteCustomSource
{
get { return txtLocl.AutoCompleteCustomSource; }
set { txtLocl.AutoCompleteCustomSource = value; }
}
public virtual AutoCompleteMode AutoCompleteMode
{
get { return txtLocl.AutoCompleteMode; }
set { txtLocl.AutoCompleteMode = value; }
}
public virtual AutoCompleteSource AutoCompleteSource
{
get { return txtLocl.AutoCompleteSource; }
set {txtLocl.AutoCompleteSource=value;}
}
我正在这样创建,但是对于AutoCompleteCustomSource
字符串集合,我遇到了这样的错误。我告诉你错误
我想要的是我在下图中显示