Pages

Total Pageviews

Add This

Friday, May 6, 2011

Add Item in Listview

Create a form like on the picture bellow:
In the button named "Add" writhe the code:
    
        Dim item As New ListViewItem(TextBox1.Text)
        item.SubItems.Add(TextBox2.Text)

        ListView1.Items.Add(item)

1 comment:

  1. Just what I needed.

    Why are their 9 ad's on this page?

    ReplyDelete