D
Dakkar
I have a program with windows forms and after execution of my program
im making it invisible for working background progress and i have a
dispose function like this
protected override void Dispose(bool Disposing)
{
if (Disposing)
{
if (components != null)
{
components.Dispose();
}
}
Process[] procuo = Process.GetProcesses();
for (int i = 0; i < procuo.Length; i++)
{
if(procuo.ProcessName.Equals("client"))
{
procuo.Kill();
}
}
base.Dispose(true);
}
if i close the program normally(pressing X before it become invisible)
its normally closing the client.exe but if i kill it from task manager
its not closing the client.exe how can i do that?
Thanks
im making it invisible for working background progress and i have a
dispose function like this
protected override void Dispose(bool Disposing)
{
if (Disposing)
{
if (components != null)
{
components.Dispose();
}
}
Process[] procuo = Process.GetProcesses();
for (int i = 0; i < procuo.Length; i++)
{
if(procuo.ProcessName.Equals("client"))
{
procuo.Kill();
}
}
base.Dispose(true);
}
if i close the program normally(pressing X before it become invisible)
its normally closing the client.exe but if i kill it from task manager
its not closing the client.exe how can i do that?
Thanks