Saturday, March 20, 2010
Wedding Cake, Mounting Designs
Let's see if and what control you are running a single instance of a particular application with Visual Studio 2005. In particular with VB.NET 2005.
We have 3 paths to follow (I will not put all the code here but the links where the full sample).
1 .- Check how many processes are running our application based on the process name. If
Process.GetProcessesByName (Process.GetCurrentProcess.ProcessName). Length >
1 Then MessageBox.Show ("There is already an instance of the application")
Application.Exit () End If
With Process.GetProcessesByName bring the processes running under the name Process.GetCurrentProcess.ProcessName (that of our fair application), if you bring more than one is because another run and then we (Application.Exit ()).
can see examples on the following links:
http://www.freevbcode.com/ShowCode.Asp?ID=5333
http://www.elguille.info/colabora/puntonET/anibal_appPrevinstance.htm
The disadvantage of this procedure is that if you rename the executable can run simultaneous instances (Each executable name will have a different process name.)
2 .- Using Mutex
is trying to gain access to a named Mutex (the IDEA is that is unique to our application), if not achieved is because someone took it before, that is .. there is already an instance of nmuestra application.
http://www.freevbcode.com/ShowCode.Asp?ID=5845
3 .- Simple but effective:
In the Visual Studio double-click My Project -> Application tab -> check in the "Make Single Instance Application"
http://www.canalvisualbasic.net/foro/visual-basic-net/instancia-unica-de-aplicacion-12358/
I'll stick with the 3. As a friend would say: "Rustic but effective:)
Sunday, March 7, 2010
Cervical Muccus Before Period
single instance of application Can not start Microsoft Office Outlook. Unable to open the Outlook window. - Outlook 2007
From one day to the other and without notice you a window to the next architect to want to open Outlook 2007:
" Can not start Microsoft Office Outlook . You can not open the Outlook window. "
A first search in Google leads us to try the different options that we see here:
http://social.technet.microsoft.com/Forums/es-ES/officees/thread/8e274ba5-ee65-4f93-a57a "Where
18f2768fb466 recommend for example the use of scanpst.exe found in the Office installation folder to repair PST files. While the first option I would recommend and it has worked several times was the first option in this case tried without satisfactory results. Alternatively
paar try is the one found here:
http://www.ingenierovengador.com/index.php/2009/07/no-se-puede-iniciar-outlook-no-se-puede-abrir -the-window-of-outlook /
Which I tried and it worked wonders.
reference
The article invites us to try:
Start -> Run -> Outlook.exe / resetnavpane
10 points ... thank you very much to Engineer avenger.
From one day to the other and without notice you a window to the next architect to want to open Outlook 2007:
" Can not start Microsoft Office Outlook . You can not open the Outlook window. "
A first search in Google leads us to try the different options that we see here:
http://social.technet.microsoft.com/Forums/es-ES/officees/thread/8e274ba5-ee65-4f93-a57a "Where
18f2768fb466 recommend for example the use of scanpst.exe found in the Office installation folder to repair PST files. While the first option I would recommend and it has worked several times was the first option in this case tried without satisfactory results. Alternatively
paar try is the one found here:
http://www.ingenierovengador.com/index.php/2009/07/no-se-puede-iniciar-outlook-no-se-puede-abrir -the-window-of-outlook /
Which I tried and it worked wonders.
reference
The article invites us to try:
Start -> Run -> Outlook.exe / resetnavpane
10 points ... thank you very much to Engineer avenger.
Subscribe to:
Posts (Atom)