You can use Process.GetProcessesByName(processName) to guess if there is
another instance running.
You can get the process name with
Syetm.Reflection.Assembly.GetExecutingAssembly.Get Name.Name.
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
"Dzemo" <dz***@wizard.ba> escribió en el mensaje
news:%2****************@TK2MSFTNGP09.phx.gbl...
how to ensure that my program can't start twice on the computer and tell
user something like "Program already started"
Can I do anything with Process Class
thx