Visual Basic 2010 Program For Next



 Program For Next VB 2010



Public Class Form4



    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

        End

    End Sub



    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

        ListBox1.Items.Clear()

        TextBox1.Text = 0

        TextBox2.Text = 0

    End Sub



    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim angka As Integer

        For angka = TextBox1.Text To TextBox2.Text

            ListBox1.Items.Add(angka)

        Next

    End Sub

End Class 


Related Post

close