C# Combobox清空值
2021-04-08 06:25
阅读:639
标签:down ted selected list ems opd sel span nbsp C# Combobox清空值 标签:down ted selected list ems opd sel span nbsp 原文地址:https://www.cnblogs.com/cnote/p/9093601.htmlC#combobox1中设置dropdownstyle为dropdownlist,清空时写法: comboBox1.SelectedIndex = -1;
C#combobox1中设置dropdownstyle为dropdown,清空时写法: comboBox1.text= "";
C#combobox1中设置了items,清空items时写法: comboBox2.Items.Clear();
评论
亲,登录后才可以留言!