G
Guest
I have an ArrayList with 5 elements in it. I have a Next and a Prev button
on my form. I need to show the first element in a textbox when the form
opens. I need to move to the next element in the ArrayList when I click the
Next button and move to the previous element (if I am not on the first
element) when clicking the Prev button. Is there a way to keep track of
which element is in the textbox and then show either the next or previous
elements?
on my form. I need to show the first element in a textbox when the form
opens. I need to move to the next element in the ArrayList when I click the
Next button and move to the previous element (if I am not on the first
element) when clicking the Prev button. Is there a way to keep track of
which element is in the textbox and then show either the next or previous
elements?