好久没有来博客园了,抽空总结下用过的下拉框吧

一.DEV控件CheckedComboBoxEdit(工具箱—>Common Control—>CheckedComboBoxEdit)

 1  //说明:若ShowButtons属性为true,则显示OK和Cancel按钮;
 2             //若ShowButtons属性为true,ShowPopupCloseButton为false,则显示OK,不显示Cancel按钮
 3             //若ShowButtons属性为false,ShowPopupCloseButton为true,则下拉框左下角会显示×表示取消;
 4             //若二者都为false,都按钮和×都不显示   以上情况可以在实际中进行试验(亲测,觉得这俩属性做的很细致)
 5             checkedComboBoxEdit1.Properties.ShowButtons = true;//是否显示“OK”,和Cancel按钮
 6             checkedComboBoxEdit1.Properties.ShowPopupCloseButton = false;//是否显示Cancel
 7 
 8             checkedComboBoxEdit1.Properties.SelectAllItemCaption = "全选";//默认为"Select All"
 9             checkedComboBoxEdit1.Properties.SelectAllItemVisible = true;//全选框是否可见
10             checkedComboBoxEdit1.Properties.SeparatorChar = ','; //多选时显示值的分割符(默认,)
常用属性

相关文章: