Go through the listbox
I have a listbox with ip Address. I want to make a function after using a ip address it will go to the next one. At the end it need to go back to the first one.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mahesh ChandPosted Jul 22, 2008, 10:00 PM
Use ListBox.Items property to get all the items of a ListBox. In the end, set SelectedIndex property to 0 to select the first item. Here are some sample articles from this site:
How to retrieve a list of items from listbox in C#
Adding Items to a ListBox
Ryan AlfordPosted Jul 22, 2008, 5:55 PM