Array of textbox values parsed via next and previous buttons
<p>I've got a form in winform with a <strong>next</strong> and <strong>previous</strong> button. I have a range of numbers i stored in an array, and want to go through them via the buttons. I need help on how i would do that &amp; a possible example. I've tried and looked everywhere but can't come to a conclusion as i've now hit a brick wall. </p>

<pre><code>private nextButton_Clicked()
{
    int counter;

    if (counter == 0)
    {
        //content of first page
    } 
}
</code></pre>

<p>The above works for the second page only, but I need something functional and non-repetitive.</p>