private void pictureBox_DoubleClick(object sender, EventArgs e) { PictureBox pictureBox = (PictureBox)sender; string filePath = pictureBox.Tag.ToString(); ShowForm newForm = new ShowForm(); newForm.imgPath = filePath; newForm.Show(); }
private void Control_DoubleClick(object sender, EventArgs e) { PicBox picBox = (PicBox)sender; string imgPath = picBox.Tag.ToString(); //MessageBox.Show(imgPath); ShowForm form = new ShowForm(); form.imgPath = imgPath; form.Show(); }
private void pictureBox_DoubleClick(object sender, EventArgs e) { PictureBox pictureBox = (PictureBox)sender; string filePath = pictureBox.Tag.ToString(); //Image image = pictureBox.Image; ShowForm newForm = new ShowForm(); newForm.imgPath = filePath; //newForm.SetPictureBoxByImage(image); newForm.Show(); }