在VB.NET里怎么用循环语句来赋值

2024-11-15 17:53:14
推荐回答(1个)
回答1:

dim s() as string
For Each fm1 In Panel1.Controls
dim i=0
if fm1.GetType.ToString = "System.Windows.Forms.TextBox" Then
s(i)=fm1.text
i+=1
End If
Next