更新时间:2023-12-06 15:01:40
您可以简单地保留对创建对象的引用.看看下面的链接.我认为这只是您需要的示例源代码.
http://www.freevbcode.com/ShowCode.asp?ID=5977 [ ^ ]
祝您好运!
You can simply keep reference to the created objects. Have a look at the link below. I think it''s just the example source code you need.
http://www.freevbcode.com/ShowCode.asp?ID=5977[^]
Good luck!
在添加它们之前,请先获取表单上已经存在的控件的数量.添加它们时,您知道第一个动态移动的项目在Controls
列表中的位置,并从那里进行索引.Location
属性是您要用来移动它们的东西.
Before adding them, get a count of the controls that are already on the form. When you add them, you know where in theControls
list the first dynamically moved item is, and index from there.
TheLocation
property is what you''re want to use to move them.