title: Adding an image to array elements
body: <p>I am making a card game where I have created 10 different cards, I have implemented the pictures into the program in the resources area on the right. My card structure looks like this:</p>
  
  <pre><code> public Form1()
      {
          cards = new PlayCard[10];
          cards[0] = new PlayCard("Harry", 97, 33, 40);
          cards[1] = new PlayCard("Dave", 80, 91, 41);
          cards[2] = new PlayCard("Randle", 90, 13, 45);
          cards[3] = new PlayCard("Zach", 30, 98, 81);
          cards[4] = new PlayCard("Shorty", 30, 89, 99);
          cards[5] = new PlayCard("Matt", 75, 81, 72);
          cards[6] = new PlayCard("Aaron", 89, 82, 80);
          cards[7] = new PlayCard("Ryan", 25, 83, 71);
          cards[8] = new PlayCard("Stephen", 96, 100, 100);
          cards[9] = new PlayCard("David", 90, 37, 70);
  
          InitializeComponent();
      }
  </code></pre>
  
  <p>I'm wondering how I get the corresponding picture to show up determined on which card is shown</p>
  
  <p>Thanks</p>