Visual Basic 2010 Perulangan For

//lh3.googleusercontent.com/-K5UKWzgJhmU/AAAAAAAAAAI/AAAAAAAACdI/CN3nwiBZsGE/s512-c/photo.jpg
November 19, 2016





gambar di samping adalah tampilan for perulangan dengan for

 Public Class Form1
    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
    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
End Class


Related Post

SUBSCRIBE TO OUR NEWSLETTER

closed