文件名称:Single-instance-applications
- 所属分类:
- .net编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2013-09-24
- 文件大小:
- 41kb
- 下载次数:
- 0次
- 提 供 者:
- mabrouk ********
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Visual Studio 2005 brings new way of creating single instance applications via help of Application fr a mework. But to be able to use Application fr a mework, application must start with form. That s right - no support for tray-ed applications at this point.
To overcome this limitation one must implement its own multiple instance management. Most traditional usage is to use mutex for detecting second instance. Problem is that first instance does not know when second instance fires. To overcome this behavior we must implement some kind of communication mechanism between instances. This will allow us to use custom action when second instance fires - like opening our main application window.
To overcome this limitation one must implement its own multiple instance management. Most traditional usage is to use mutex for detecting second instance. Problem is that first instance does not know when second instance fires. To overcome this behavior we must implement some kind of communication mechanism between instances. This will allow us to use custom action when second instance fires - like opening our main application window.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Binaries
........\Highlander.dll
........\HighlanderSample.exe
HighlanderAss
.............\clsHighlander.vb
.............\clsNamedPipe.vb
.............\cls_.vb
.............\HighlanderAss.vbproj
.............\HighlanderAss.vbproj.user
.............\My Project
.............\..........\Application.Designer.vb
.............\..........\Application.myapp
.............\..........\AssemblyInfo.vb
.............\..........\Resources.Designer.vb
.............\..........\Resources.resx
.............\..........\Settings.Designer.vb
.............\..........\Settings.settings
HighlanderSample
................\clsMain.vb
................\clsTray.vb
................\frmMain.Designer.vb
................\frmMain.resx
................\frmMain.vb
................\HighlanderSample.vbproj
................\HighlanderSample.vbproj.user
................\Main.ico
................\My Project
................\..........\Application.Designer.vb
................\..........\Application.myapp
................\..........\AssemblyInfo.vb
................\..........\Resources.Designer.vb
................\..........\Resources.resx
................\..........\Settings.Designer.vb
................\..........\Settings.settings
HighlanderSample.sln
HighlanderSample.suo