Пример #1
0
        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();
        }
Пример #2
0
        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();
        }
Пример #3
0
        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();
        }