J
Joe Ocampo
Does anyone know how to prevent multiple applications from being
instantiated?
instantiated?
Joe Ocampo said:Does anyone know how to prevent multiple applications from being
instantiated?
Fergus Cooney said:if (aoProcList != oThisProcess)
{
// Activate the previous instance.
//!! AppActivate() is a Vb function.
// Q. How is it called in C# ?
// A. Add a reference to VBA. Import it. Call it.
// Q. Is there a better way ?
// A. Calling Herfried ?? Come in Herfried ??
previous instance. Can anyone help on this. I don't want to use VB
facilities, nor the WinApi, unless I have to.
unless I have to.Fergus: // Activate the previous instance.
//!! AppActivate() is a Vb function.
// Q. How is it called in C# ?
// A. Add a reference to VBA. Import it. Call it.
// Q. Is there a better way ?
// A. Calling Herfried ?? Come in Herfried ??
Can anyone help on this. I don't want to use VB facilities, nor the WinApi,
Herfried:
I would add a reference to Microsoft.VisualBasic.dll and use AppActivate.
Why don't use the VB .NET functions? They are part of the "Framework".