...

View Full Version : Opening MSPaint in C#



cc67
10-30-2012, 06:56 AM
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


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



private void edit_Click(object sender, EventArgs e)
{
Process.Start("mspaint");
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum