VB6中怎么用代码实现添加控件数组

如题所述

首先添加一个label,在属性里把index设为0
添加一个按钮
加入代码
For i = 1 To 2
Load Label1(i)
Label1(i).Left = Label1(i - 1).Left + Label1(i - 1).Width + 100
Label1(i).Visible = True
Next
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答