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 ListBoxNames.Items.Add(TextBoxName.Text) TextBoxName.Text = "" End Sub
Now you can run the program and add the names to the ListBox