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".
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.