C#combobox1中设置dropdownstyle为dropdownlist,清空时写法: comboBox1.SelectedIndex = -1;
C#combobox1中设置dropdownstyle为dropdown,清空时写法: comboBox1.text= “”;
C#combobox1中设置了items,清空items时写法: comboBox2.Items.Clear();
C# Combobox清空值
最新推荐文章于 2024-06-01 15:19:25 发布
C#combobox1中设置dropdownstyle为dropdownlist,清空时写法: comboBox1.SelectedIndex = -1;
C#combobox1中设置dropdownstyle为dropdown,清空时写法: comboBox1.text= “”;
C#combobox1中设置了items,清空items时写法: comboBox2.Items.Clear();