asp.net from winform中textbox下拉提示框

作者:袖梨 2022-06-25

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;
}

 

相关文章

精彩推荐