View Single Post
Old 10-30-2012, 05:56 AM   PM User | #1
cc67
New to the CF scene

 
Join Date: Sep 2012
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
cc67 is an unknown quantity at this point
Opening MSPaint in C#

I have already opened mspaint in C#. I'm currently using Visual Studio 2010 and I'm making a picture viewer using C#. What I want to do is, when a user opens an image, and he/she wanted to edit it, there is a button that says open in MS Paint and when the user clicks it, MS Paint will open with the picture the user just viewed in my picture viewer. Thanks. What code should I use? what namespaces should I use?
Here are my namespaces
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
Here is my code

Code:
private void edit_Click(object sender, EventArgs e)
        {
            Process.Start("mspaint");
        }
cc67 is offline   Reply With Quote