firstly, sorry about the title of this thread, I couldn't really think of one to explain what I am trying to get at.
In my app I have an XML file that is loaded on formload and looped through to extract the required data into a listbox. That bit is straight forward and works a charm.
However the said XML file is broken down into many individual pages because of a size issue.
Now, also on my form I have 2 buttons, btnNext & btnPrev, so as to be able to navigate through the remaining pages of the XML.
I was wondering if there is a simple way to use the button click events to call either the Next or Previous page without actually having to rewrite the code into each buttons click event?
I understand that I would need to construct a loop to count through avialable pages and display the correct Next or Previous page in relation to the current page that is being used but am kind of at a hurdle and need a few ideas as to the best approach.