here is the codes
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Diagnostics;
//Author : Mohamed Shimran //Blog : Http://www.ultimateprogrammingtutorials.blogspot.com namespace EndProcess { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Process[] ps = Process.GetProcesses(); foreach (Process p in ps) { if (p.ProcessName.ToLower() == textBox1.Text ) { p.Kill(); } } } private void Form1_Load(object sender, EventArgs e) { } } }
enjoy and try to make it more stable since its not stable
Post a Comment
Note: Only a member of this blog may post a comment.