VB Project Source Code

Array tutorial vb.net




Free download this tutorial link below

Public Class Form1
    Dim ArrayVAr(4) As String

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

        ArrayVAr(0) = "Lahor"
        ArrayVAr(1) = "Multan"
        ArrayVAr(2) = "faisalabad"
        ArrayVAr(3) = "Karachi"
        ArrayVAr(4) = "Pashawar"
        Dim x As Integer = 0
        For x = 0 To UBound(ArrayVAr)
            ListBox1.Items.Add(ArrayVAr(x))
        Next
    End Sub
End Class