Ver Mensaje Individual
  #6 (permalink)  
Antiguo 30/08/2010, 13:18
Avatar de xjuanch0x
xjuanch0x
 
Fecha de Ingreso: septiembre-2009
Mensajes: 125
Antigüedad: 15 años, 6 meses
Puntos: 1
Respuesta: .exe Ejecutandose

Cita:
Iniciado por mvazquez Ver Mensaje
No me funciono David, hice pruebas con esto....

Código:
if (Process.GetProcessesByName("calc.exe").Length > 1)
{

}
siempre me regresa valor 0
Código C#:
Ver original
  1. if (Process.GetProcessesByName("calc").Length > 0)
  2.   {
  3.       this.Close();
  4.   }


Hazlo asi...
__________________
Juan David Torres Vasquez
[email protected]
Microsoft Certified Technology Specialist (MCTS)
DCE Platinum en Visual C# y VB.NET