I am writing a program that could show the error log on scrren by using listbox. I want to list only the last 20 log s and delete the rest of the logs that occur before. As listbox has the listcount property so that I can check if the data is more than 20 or not. The question is what is the best way to do this. I was thinking about changing the index to 0 and delete the content and copy the index 1 to 0 then copy index 2 to 1 and so on.. but there should be an easier and faster way.