日期:2014-05-20  浏览次数:20808 次

请问foreach的遍历顺序是什么???
是不是按tabindex啊???可是我有两个控件一个是0,一个是1,为什么先遍历的是1那个啊???

------解决方案--------------------
不是TabIndex而是通过控件在Controls的索引来循环的,这个索引,可以这样等到:

Control.ControlCollection.GetChildIndex (Control child)
可以这样来设置:
Control.ControlCollection.SetChildIndex (Control child,int newIndex)