Add Items to ListBox in Visual Basic .NET

Last Updated: March 19, 2020

In this example, I am going to add some items (Name) to the ListBox

First you can create the Form with Controls as shown in the below image
Then you can name the controls of the form as below

Name of the Listbox is ListboxNames
Name of the TextBox is TextBoxAdd
Name od the Button is ButtonAdd


Then you add the following code to the click event handler of the Button

    Private Sub ButtonAdd_Click(sender As Object, e As EventArgs) Handles ButtonAdd.Click
        TextBoxName.Text = ""

    End Sub

Now you can run the program and add the names to the ListBox