Loading

textbox自动提示

    AutoCompleteStringCollection myCutomSource = new AutoCompleteStringCollection();
            myCutomSource.AddRange(new string[] { "成都市东门", "成都市北门", "成都市西门", "成都市南门", "1都市南门", "1成都市南门", "1成都市南门" });
            this.textBox1.AutoCompleteSource = AutoCompleteSource.CustomSource;
            this.textBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            this.textBox1.AutoCompleteCustomSource = myCutomSource;

posted @ 2013-12-05 10:43  GerryGe  阅读(238)  评论(0编辑  收藏  举报