private void pbItem_Click(object sender, EventArgs e) { //Display larger image of item when clicked Image i = ((PictureBox)sender).Image; frmItemImage frm = new frmItemImage(i); frm.ShowDialog(); }