private void btnPreview_Click(object sender, EventArgs e)
        {
            frmPreview frm = new frmPreview();

            frm.ImageFile = pictureBox1.Image;
            frm.Show();
        }
Example #2
0
        private void btnPreview_Click(object sender, EventArgs e)
        {
            foreach (Form frmCheck in MdiChildren)
            {
                if (frmCheck.GetType() == typeof(frmPreview))
                {
                    frmCheck.Activate();
                    return;
                }
            }
            Form frmChild = new frmPreview
            {
                MdiParent = this
            };

            frmChild.Show();
        }