8. List Box

This tutorial will introduce the ListBox object and give you a basic understanding of how it works. There are more practical uses than the one shown in this application but as we are still in the early stages, this example is for beginners.

Code

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        ListBox1.Items.Add(TextBox1.Text)
    End Sub

End Class