程序笔记
随心而记

        private void Form1_Load(object sender, EventArgs e)
        {
            comboBox1.Items.Add("a");
            comboBox1.Items.Add("ab");
            comboBox1.Items.Add("abc");
            comboBox1.Items.Add("abcd");
            comboBox1.Items.Add("abcde");
            comboBox1.Items.Add("b");
            comboBox1.Items.Add("bc");
            comboBox1.Items.Add("bcd");
            comboBox1.Items.Add("bcde");
            comboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            comboBox1.AutoCompleteSource = AutoCompleteSource.ListItems;

        }

完毕!!!

posted on 2009-03-21 01:50    阅读(1209)  评论(0)    收藏  举报