Please i have a textbox, a button and a listview. The listview contains a list of items let's say 20 items. When i enter 3 in the textbox and click on the button, the first three items should be removed likewise if i enter 10, then the first 10 items should be removed. If i enter anything more than 20, the 20 items should be removed. Please help me out. Thanks in advance.

Re: How can i remove the first three items in a listview in 80 80

After verifying that a valid number has been entered you can do

For i = 1 To CInt(TextBox1.Text)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.