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

解决方案 »

  1.   

    z-order的顺序,一般就是Controls.Add的顺序
      

  2.   

    不是TabIndex而是通过控件在Controls的索引来循环的,这个索引,可以这样等到:Control.ControlCollection.GetChildIndex (Control child)
    可以这样来设置:
    Control.ControlCollection.SetChildIndex (Control child,int newIndex)
      

  3.   

    那怎么更改在controls中的索引呢???
      

  4.   

    可以这样来设置:
    Control.ControlCollection.SetChildIndex (Control child,int newIndex)上面的不是说了吗?
      

  5.   

    我在Designer文件里面修改了一下Add的顺序!!!