vb动态加载控件怎么判断内容
2个回答
2015-05-20
展开全部
Private Sub Command1_Click()
Dim i As Integer
For i = Text1.LBound To Text1.UBound
If Text1(i).Text = "1" Then
MsgBox "Text1(" & i & ")中的文本是1"
End If
Next
End Sub
Private Sub Form_Load()
Dim i As Integer
Text1(0).Text = 0
For i = 1 To 5
Load Text1(i)
Text1(i).Text = i
Text1(i).Top = Text1(i - 1).Top + 300
Text1(i).Visible = True
Next i
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询