在设计时加一个text1,一个text2它的属性index=0 Private Sub Command2_Click() For i = 1 To Val(Text1.Text) Load Text2(i)
If i Mod 5 = 0 Then Text2(i).Top = Text2(i - 1).Height + Text2(i - 1).Top Text2(i).Left = Text2(0).Left Else Text2(i).Top = Text2(i - 1).Top Text2(i).Left = Text2(i - 1).Left + Text2(i).Width End If Text2(i).Text = i Text2(i).Visible = True Next End Sub