title: How do I Group Picture Box click events into one?
body: <pre><code>private void p01_Click(object sender, EventArgs e)
      {
          if (p01.Image == pmiss.Image)
          {
              score++;
              makeMoleVisable(1, phit);
          }
          else
          {
              score--;
              molesmissed++;
          }
      }
      private void p02_Click(object sender, EventArgs e)
      {
          if (p02.Visible)
          {
              if (p02.Image == pmiss.Image)
              {
                  score++;
                  p02.Image = phit.Image;
              }
              else
              {
                  score--;
                  molesmissed++;
              }
          }
      }
  </code></pre>
  
  <p>Hello I Have 36 of these picturebox click events. I want to use just one click event for all 36 picture boxes. Additionally all click events do the same thing, the code is just slightly different on the first one. Thnaks</p>