在WINDOWSFORM中,怎樣給COMBOBOX增加VALUE
using System.Collections;
ArrayList list = new ArrayList();
list.Add (new DictionaryEntry ("1","投诉"));
list.Add (new DictionaryEntry ("2","举报"));
list.Add (new DictionaryEntry ("3","建议"));
list.Add (new DictionaryEntry ("4","表扬"));
list.Add (new DictionaryEntry ("5","其它"));
cbBoxLeiXing.DataSource =list;
cbBoxLeiXing.DisplayMember ="Value";
cbBoxLeiXing.ValueMember ="Key";
浙公网安备 33010602011771号