title: c# Metro framework - Previous and Next button to access another panels
body: <p>I am developing this project "Profiling System" using MetroFramework and I've got this problem. If I click the next button I want my system to show the other panels where it has MetroTextboxes, MetroComboboxes, MetroCheckboxes and other tools of MetroFramework, But the panels does not appear.</p>
  
  <p>I also want to try the UserControl just to slide it on the form but I don't know how. Please help.</p>
  
  <pre><code>using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;
  using MetroFramework.Forms;
  
  namespace TEST.cs
  {
      public partial class Form1 : MetroForm
      {
          List&lt;Panel&gt; listPanel = new List&lt;Panel&gt;();
          int index;
          public Form1()
          {
              InitializeComponent();
          }
  
          private void btnBack_Click(object sender, EventArgs e)
          {
              if (index &gt; 0)
                  listPanel[--index].BringToFront();
          }
  
          private void btnNext_Click(object sender, EventArgs e)
          {
              if (index &lt; listPanel.Count - 1)
                  listPanel[++index].BringToFront();
          }
  
          private void Form1_Load(object sender, EventArgs e)
          {
              listPanel.Add(metroPanel1);
              listPanel.Add(metroPanel2);
              listPanel.Add(metroPanel3);
              listPanel[index].BringToFront();
          }
      }
  }
  </code></pre>