Hi
I'm not figure out how to change this.
I want to open the image that is active on one picturebox using the default image editor.
I get to this one working with MSPAINT.
What should I change? Tks in advance
I'm not figure out how to change this.
I want to open the image that is active on one picturebox using the default image editor.
I get to this one working with MSPAINT.
What should I change? Tks in advance
Code:
If Not Me.PictureBox1.Image Is Nothing Then
Dim s As String = System.IO.Path.GetTempFileName()
PictureBox1.Image.Save(s, System.Drawing.Imaging.ImageFormat.Png)
Dim p As Process = Process.Start("mspaint.exe", s)
While p.MainWindowHandle = IntPtr.Zero
System.Threading.Thread.Sleep(100)
End While
System.IO.File.Delete(s)
End If