將ARRAYLIST指定成 comboBox內容

  舉例 comboBox2.DataSource = listmembername;(arraylist 物件)


而更新comboBox時要先指定為NULL再重新指定。

  comboBox2.DataSource = null;
  comboBox2.DataSource = listmembername;

有事過不先指定為NULL不會更新。

留言

此網誌的熱門文章