ComboboxEdit控件是dev中比较基础的一个控件,其用法比较简单,只需在其Item中添加值即可,赋值语句如下:

comboBoxEdit1.Properties.Items.Add("123");

其常用的事件为SelectedIndexChanged事件,主要用来选择当前值,如:

private void comboBoxEdit1_SelectedIndexChanged(object sender, EventArgs e)

{

int selectIndex=comboBoxEdit1.SelectedIndex;

}

控件效果如下: