title: Image Gallery on C#
body: <p>What I have to do is this:</p>
  
  <p>Make an image gallery that has 5 buttons which each one select a folder of images.</p>
  
  <p>Other two buttons for next and previous of the folder you are in. In my line 76, it says</p>
  
  <blockquote>
    <p>argument 1: cannot convert from 'System.collection.Generic.list' to string</p>
  </blockquote>
  
  <p>Any ideas?</p>
  
  <p>Here's an image of the console
  <a href="http://postimg.org/image/nct5pwdit/" rel="nofollow">http://postimg.org/image/nct5pwdit/</a></p>
  
  <p>Line 76 says:   </p>
  
  <pre><code>pictureBox1.Load(semestres[semac].imagen[]);
  </code></pre>
  
  <p>I have the same command like 6 times.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  
  class semestres
  {
      public List&lt;string&gt; imagen = new List&lt;string&gt;();
      private int _semestre;
      public int canti;
      public int actual;
      public int c;
  
      public semestres(int semestre, List&lt;string&gt; imagenes)
      {
          _semestre = semestre;
          imagen = imagenes;
          c = imagen.Count;
          actual = 0;
      }
      public int semestre
      {
          get
          {
              return _semestre;
          }
          set
          {
              c = imagen.Count;
          }
      }
      public int can
      {
          get
          {
              return c;
          }
          set
          {
              c = imagen.Count;
          }
      }
  }
  
  namespace Visor
  {
      public partial class Form1 : Form
      {
          private int cont;
          private int semac;
          private int _cant;
          private int next;
          private List&lt;semestres&gt; semestres = new List&lt;semestres&gt;();
          public Form1()
          {
              InitializeComponent();
          }
  
          private void button1_Click(object sender, EventArgs e)
          {
              cont = semestres[semac].actual;
              cont--;
              if (cont &gt;= 0)
              {
                  pictureBox1.Load(semestres[semac].imagen[]);
                  semestres[semac].actual = cont;
              }
              else
              {
                  //       MessageBox("Esta es la primer imagen");
                  cont = 0;
                  semestres[semac].actual = cont;
                  pictureBox1.Load(semestres[semac].imagen);
              }
          }
  
          private void button7_Click(object sender, EventArgs e)
          {
              cont = semestres[semac].actual;
              next = semestres[semac].c;
              cont++;
              if (cont &lt; next)
              {
                  pictureBox1.Load(semestres[semac].imagen);
                  semestres[semac].actual = cont;
              }
              else
              {
                  //       MessageBox("Esta es la ultima imagen");
                  cont--;
                  semestres[semac].actual = cont;
                  pictureBox1.Load(semestres[semac].imagen(cont));
              }
          }
  
          private void button2_Click(object sender, EventArgs e)
          {
              semac = 0;
              try
              {
                  if (semestres[0].c &gt; 0)
                  {
                      cont = semestres[0].actual;
                      pictureBox1.Load(semestres[0].imagen(cont));
                  }
              }
              catch (Exception)
              {
                  OpenFileDialog file = new OpenFileDialog();
                  file.InitialDirectory = @"C:\";
                  file.Filter = "Images (*.BMP; *.JPG; *.GIF)|*.BMP; *.JPG; *.GIF|" + "All files(*.*)|*.*";
                  file.FilterIndex = 1;
                  file.Multiselect = true;
                  file.RestoreDirectory = true;
                  file.ShowDialog();
                  string[] imgs = file.FileNames;
                  List&lt;string&gt; imagenes = new List&lt;string&gt;();
                  foreach (string imagen in imgs)
                  {
                      imagenes.Add(imagen);
                  }
                  semestres.Add(new semestres(1, imagenes));
                  pictureBox1.Load(imagenes[0]);
                  semestres[0].actual = 0;
                  cont = 0;
              }
          }
  
          private void button6_Click(object sender, EventArgs e)
          {
  
          }
  
          private void btn_3_Click(object sender, EventArgs e)
          {
  
          }
  
          private void Form1_Load(object sender, EventArgs e)
          {
  
          }
  
          private void btn_sal_Click(object sender, EventArgs e)
          {
  
          }
  
          private void btn_2_Click(object sender, EventArgs e)
          {
  
          }
      }
  }
  </code></pre>