仅打开一个Windows计算器实例 [英] Open only one instance of Windows Calculator

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

问题描述

亲爱的朋友,

单击Web应用程序上的按钮后,我已经打开了Windows计算器,但是当我再次再次单击相同的按钮时,Windows计算器的另一个实例再次打开.

如何确保一次只能打开一个实例.

谢谢

Varun Sareen

Dear Friends,

I have opened a windows calculator on the click of a button on my web application but the moment i again click on the same button again, an another instance of the windows calculator opens again.

How can i ensure that only one instance should be opened at a time.

Thanks

Varun Sareen

推荐答案

在启动该进程之前,您需要查看该进程是否已打开.

此示例可能会有所帮助.
http://msdn.microsoft.com/en-us/library/ms682623.aspx [ ^ ]
You''ll need to see if the process is open before you launch it.

This example may help.
http://msdn.microsoft.com/en-us/library/ms682623.aspx[^]


这篇关于仅打开一个Windows计算器实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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