S
simon
Hi! I am beginner of VB.net When I wrote with VB6, I copy and paste
some same controls, the IDE will paste a assay control such as
"label1(1),label1(2)......" . So I can control them total with the "for
.....Next".
But in VB.net When I do the same thing ,IDE will give me such as
"label1,label2......". then how can I do as the VB6?
for example:
In VB6
Private Sub Form1_Load
For i = 1 To 5
TextBox1(i) = ""
Nex
End Sub
In VB.net I just can write as follow:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim i As Integer
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
End Sub
How can I wirte in VB.net with "for next"??
Thanks a Lot!!
Simon
some same controls, the IDE will paste a assay control such as
"label1(1),label1(2)......" . So I can control them total with the "for
.....Next".
But in VB.net When I do the same thing ,IDE will give me such as
"label1,label2......". then how can I do as the VB6?
for example:
In VB6
Private Sub Form1_Load
For i = 1 To 5
TextBox1(i) = ""
Nex
End Sub
In VB.net I just can write as follow:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim i As Integer
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
End Sub
How can I wirte in VB.net with "for next"??
Thanks a Lot!!
Simon