从WPF应用程序打开Windows计算器 [英] open windows calculator from wpf application

查看:93
本文介绍了从WPF应用程序打开Windows计算器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..
我正在使用wpf(C#)开发应用程序.
我想在按钮单击事件上打开(运行)Windows计算器,
我该怎么办?

Hi..
I am developing application with wpf(C#).
i want to open(run) windows calculator on button click event,
how can i do this?
thanks.

推荐答案

这应该可以解决问题:

This should do the trick:

System.Diagnostics.Process.Start("calc.exe");


我的建议是

my suggestion is,

System.Diagnostics.Process.Start("calc");


这篇关于从WPF应用程序打开Windows计算器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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