我正在使用Metro框架来构建一个Windows窗体应用程序。 需要一个自动完成文本框来显示建议名称。 我已经做了很多计数但是在地铁dll。它不支持.net自动完成库任何帮助请??? ???
private void NameAutoComplete()
{
aManager = new InventoryManager();
// aMember = new Member();
string[] memberNameFromJoinedDatabase = aManager.GetMemberNameWithDesignamtion(cmbOrgMetroComboBox.ValueMember,Convert.ToInt32(cmbDepartmentMetroComboBox.ValueMember)).Select(x => string.Format("{0} {1}", x.Name, x.MemberDesignation.Name)).ToArray();
txtNameMetroTextBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
txtNameMetroTextBox.AutoCompleteSource = AutoCompleteSource.CustomSource;
var autoComplete = new AutoCompleteStringCollection();
autoComplete.AddRange(memberNameFromJoinedDatabase);
txtNameMetroTextBox.AutoCompleteCustomSource = autoComplete;
}
我的载入和文本字段
不适用txtNameMetroTextBox.AutoCompleteMode
txtNameMetroTextBox.AutoCompleteSource