English 中文(简体)
如何使用动态生成的Windows表格控制?
原标题:How to append dynamically created Windows Forms controls?
  • 时间:2009-09-25 13:17:03
  •  标签:

虽然我很容易在伙伴关系中完成。 使用AddAt()的网络,我试图在Windows表格中做同样的事情。

我有一个小组,虽然我可以做一个纸浆纸。 管制.Add(ctl)......它总是在零位插入它,当时我会把它附在最后,或用纸板。 控制。

我对某种方法视而不见,还是我不得不做什么?

最佳回答
问题回答

附加功能可以通过Add方法加以实施。

你们可以使用

SetChildIndexmeth

在增加儿童控制之后,调整儿童控制指数。

When SetChildIndex is called, the Control referred to by the child parameter is moved to the position specified by newIndex and the other Control references in the Control..::.ControlCollection are reordered to accommodate the move. The control with an index value of zero is at the top of the z-order, and higher numbers are closer to the bottom.





相关问题