Combo1(0 - 5).ListIndex = 0 运行时提示无效控件数组索引
在窗体上放置了将近20个comboBox,Index也改成0,1,2...,想实现运行时comboBox默认显示第一项Combo1(0).ListIndex = 0
Combo1(1).ListIndex = 0
Combo1(2).ListIndex = 0....
将近20个comboBox像上面这样写代码有点麻烦,改成Combo1(0 - 17).ListIndex = 0 运行就报错,提示无效控件数组索引,请各位看下怎么写代码方便些,谢谢!