asp教程.net from winform中textbox下拉提示框
private void form1_load(object sender, eventargs e)
{
autocompletestringcollection strings = new autocompletestringcollection();
strings.add("a1");//不区分大小写
strings.add("a2");
strings.add("aas");
strings.add("b1");
strings.add("beijing");
strings.add("bb-cims");
textbox1.autocompletecustomsource = strings;
textbox1.autocompletesource = autocompletesource.customsource;
textbox1.autocompletemode = autocompletemode.suggest;
}