Delphi ComboBox组件 style=csDropDownlist 的赋值方法

赋值方法:
ComboBox1.Items.Add( '文本 '); 
ComboBox1.ItemIndex := ComboBox1.Items.IndexOf( '文本 '); 

清空:
ComboBox1.ItemIndex :=-1;

 

猜你喜欢

转载自www.cnblogs.com/guorongtao/p/11693594.html
今日推荐