若combobox1的值为:
0,北京
1,上海
2,广州
style为csDropDownList
那么设置默认值的方法:
黑色头发:http://heisetoufa.iteye.com/
0,北京
1,上海
2,广州
style为csDropDownList
那么设置默认值的方法:
combobox1->ItemIndex = combobox1->Items->IndexOf("广州");
黑色头发:http://heisetoufa.iteye.com/