// This section of code is for all the picture boxes to open the Form 2 // So we can change what we can in one small place rather than looking for it // This is in the Favorite Panel private void Fave_Click(object sender, EventArgs e) { Image picture = ((PictureBox)sender).Image; if (picture != null) { Form2 form2 = new Form2(); form2.UpdatePictureBox(picture); form2.Show(); } }