using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; //download by http://down.liehuo.net namespace Ex02_07 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { comboBox1.Items.Clear(); comboBox1.Items.Add("美国"); comboBox1.Items.Add("英国"); comboBox1.Items.Add("日本"); comboBox1.Items.Add("中国"); comboBox1.Items.Add("澳大利亚"); comboBox1.Items.Add("加拿大"); comboBox1.Items.Add("法国"); comboBox1.Items.Add("韩国"); comboBox1.Items.Add("俄罗斯"); comboBox1.Items.Add("新西兰"); comboBox1.Items.Add("泰国"); comboBox1.Items.Add("意大利"); comboBox1.Items.Add("马来西亚"); this.comboBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend; this.comboBox1.AutoCompleteSource = AutoCompleteSource.ListItems; } } }
上一篇: zblog 获取数据的2个函数
下一篇: 电脑共享需要输入用户名和密码的解决办法
0条评论