title: Click on a picturebox and go to website
body: <p>I have a pictureBoxes that are being created at run time and I would like to be able to click on that box and go to a webpage after the program completes.  How can I create a click event for something like this?</p>
  
  <p>This is what I am thinking:</p>
  
  <pre><code>    PictureBox PB = new PictureBox();
                      PB.Name = "PB" + i.ToString();
                      PB.Location = new Point(51 * i, 331);
                      PB.Size = new Size(50, 50);
                      PB.ImageLocation = Sub1;
                      Controls.Add(PB);
  
      PB.Click +=new EventHandler(PB_Click); 
  
  
      protected void PB_Click(object sender, EventArgs e) 
  
  {
  
  MessageBox.Show("You clicked the mouse over the PictureBox"); 
  
  }
  </code></pre>
  
  <p>Is this on the right track?</p>