Looping (FOR) Program On VB.net


Example Looping FOR on VB.net

Step to made  Looping FOR Program :
1. Add label, 1 textbox and 1 button


2. Double click on button and add the coding :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim x As Integer
        For x = 1 To 5
            TextBox1.Text = TextBox1.Text & x
        Next
End Sub

3. Done compile this program






Comments