这样好像不行,我只能看到一个控件,楼主能不能写一个全面性一点的代码,急急啊.帮帮忙~
追答以下为Form1.Frm文件内容
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3030
ClientLeft = 120
ClientTop = 450
ClientWidth = 4560
LinkTopic = "Form1"
ScaleHeight = 3030
ScaleWidth = 4560
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 375
Left = 2880
TabIndex = 1
Top = 480
Width = 1455
End
Begin VB.TextBox Text1
Height = 375
Index = 0
Left = 480
TabIndex = 0
Text = "Text1"
Top = 0
Width = 1335
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim i As Integer
For i = 1 To 3
If i > Text1.UBound Then
Load Text1(i)
Text1(i).Top = Text1(i - 1).Top + 500
Text1(i).Visible = True
End If
Next
End Sub