I have a form called frmSales, with two textboxes and a list box.
what I want to do is to fill the listview with product description from txtDescription and product from txtPrice when I click the add to cart button. the listview should also be able to add more items when the add button is clicked again, this time the items that are added after the should be added below the already added items.
I tried to run a simple code. It could fill the listview with the items, but when I try to add more, they are not added below the other items, but rather to the right of the other items.
the code I tried to use is;
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim List1 As ListViewItem List1 = Me.lsv1.Items.Add(Me.txtDescription.Text) List1 = Me.lsv1.Items.Add(Me.txtPrice.Text) End Sub
please, help me display the data in the right order.