如何通过单击c#win表单中的按钮打开MS画图 [英] How to open the MS paint by clicking the button in c# win forms

查看:111
本文介绍了如何通过单击c#win表单中的按钮打开MS画图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过单击c#win表单中的按钮打开MS画颜。



How to open the MS paint by clicking the button in c# win forms.

private void button13_Click_2(object sender, EventArgs e)
       {



}

如何通过单击按钮打开Ms Piant并编辑框架。或位图?


}
how to Open the Ms Piant by clicking the button and edit the frames. or bitmap?

推荐答案

您应该定义ProcessStartInfo,如下所示:

You should define ProcessStartInfo, something like this:
System.Diagnostics.ProcessStartInfo procInfo = new    System.Diagnostics.ProcessStartInfo();
procInfo.FileName = ("mspaint.exe");
procInfo.Arguments = ImageFilePath; //Full Path to an image





然后启动流程:



And then start the process:

System.Diagnostics.Process.Start(procInfo);





以下是MSDN上此方法的信息;

Process.Start [ ^ ]



我没有测试这个,但它应该可以工作。



Here is info about this method on MSDN;
Process.Start[^]

I didn't test this but it should work.


这篇关于如何通过单击c#win表单中的按钮打开MS画图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆