如何防止我的应用程序的多个实例 [英] How to prevent multiple instances of my application

查看:32
本文介绍了如何防止我的应用程序的多个实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Visual Basic 中发现了一个错误.在实践中,我的申请完成后,点击正常启动的可执行文件,但是如果我再次点击可执行文件(exe),莫名其妙地打开了第二个窗口,让两个进程不必要地启动.我想知道是否有办法在某些设置中启动应用程序一次并且仅当您已经启动并且用户再次单击它时,控件而不是启动.你能做到吗?

I discovered a bug in visual basic. In practice, after completing my application, clicking on the executable file that starts normally, but if I click again on the executable file (exe), inexplicably opens a second window, getting two processes started unnecessarily. I was wondering if there was a way, maybe in some settings, to start the application once and only if you have already started and the user clicks on it again, the controls and not the start. You can do this?

推荐答案

只需转到项目属性并设置相应的复选框

Just go to the Project properties and set the appropriate checkbox

这篇关于如何防止我的应用程序的多个实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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