post

پنج‌شنبه 18 بهمن 1397
01:39
hossien


دانلود آموزش به صورت PDF : دانلود

***************************************************************************************************

کد هایی که باید در Button نوسته شود:

OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.Filter = "Image Files|*.bmp;*.jpg;*.jpeg;*.png;*.gif"; if (openFileDialog1.ShowDialog() == DialogResult.OK) { this.pictureBox1.Image = Image.FromFile(openFileDialog1.FileName); this.pictureBox1.Tag = openFileDialog1.FileName; }

***************************************************************************************************

کد هایی که در PictureBox باید نوشته شود:

if (pictureBox1.Tag != null) { System.Diagnostics.Process imageViewerProcess = new System.Diagnostics.Process(); imageViewerProcess.StartInfo.CreateNoWindow = false; imageViewerProcess.StartInfo.FileName = "rundll32.exe"; imageViewerProcess.StartInfo.Arguments = @"C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen " + pictureBox1.Tag.ToString(); imageViewerProcess.Start(); }

***************************************************************************************************


💬 نظرات کاربران
💬ثبت نام کاربران
💬ورود کاربران