如何在Windows窗体中还原应用程序 [英] how to restore the application in windows forms

查看:120
本文介绍了如何在Windows窗体中还原应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用我的exe运行我的Windows应用程序。我最小化它并保留。

现在如果我再次运行exe,则应该打开相同的运行应用程序而不是再次运行新应用程序。 />


我检查过程并显示一个消息框,说明实例已在运行,但我想恢复最小化的应用程序。

解决方案

浏览以下文章



具有从系统托盘恢复能力的C#单实例应用程序(使用互斥锁) [ ^ ]


< blockquote>请看这个帖子:



Windows.Forms:激活已在正确的FormWindowState中运行的应用程序 [ ^ ]



希望有帮助! :)

I am running my windows application using my exe .later i minimize it and keep.
Now if i again run the exe the same running application should open instead of a new application again.

I check the process and it shows me a message box saying an instance is already running but i want to restore the minimized application.

解决方案

go through following article

C# Single Instance App With the Ability To Restore From System Tray (Using Mutex)[^]


Hi, Please see this thread:

Windows.Forms: Activate an application that is already running in right FormWindowState[^]

Hope it helps! :)


这篇关于如何在Windows窗体中还原应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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