Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27333

VS 2010 editing image load in a picturebox using default image editor

$
0
0
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


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


Viewing all articles
Browse latest Browse all 27333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>