You can use the following guides for creating the ListBox in VB.net :
For creating a new VB.NET Windows forms ListBox, you can use the code \
Code:
Dim listbox As New ListBox
If you want to assign a new location for the VB.NET Windows Forms ListBox you can use :
Code:
listbox.Location = New Point(0, 0)
If you want to add a VB.NET ListBox control to the form, you can do by
Code:
Me.Controls.Add(listbox)
For assigning a Selection Mode value to the VB.NET ListBox control, use
Code:
listbox.SelectionMode = SelectionMode.MultiExtended
Mainly, you need to add an item to the ListBox control in Vb.Net and you can do this by using the code :
Code:
Dim s1 As String = "DELL"
Dim s2 As String = "HP"
Dim s3 As String = "SONY"
listbox.Items.AddRange(New String() {s1, s2, s3})
Bookmarks