This program will add one item at a time as the user enter an item into the TextBox and click the Add button.
Sample:
Code: Class Frm1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim item As String item = TextBox1.Text
'To add items to a listbox ListBox1.Items.Add(item) End Sub End Class
No comments:
Post a Comment