コード例 #1
0
ファイル: SingleView.cs プロジェクト: By2048/Windows
        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();
        }