CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Computer Programming (http://www.codingforums.com/forumdisplay.php?f=21)
-   -   Opening MSPaint in C# (http://www.codingforums.com/showthread.php?t=280081)

cc67 10-30-2012 05:56 AM

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");
        }



All times are GMT +1. The time now is 10:49 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.