Thread: kill process
View Single Post
  #3 (permalink)  
Old 06-23-2008, 04:10 PM
ostudioo ostudioo is offline
Newbie
 
Join Date: Jun 2008
Posts: 10
Credits: 0
Rep Power: 0
ostudioo is on a distinguished road
Default Re: kill process

thanks for the explanation, i understand what i did wrong now. however the code that you gave me doesn't seem to work, i get compile errors.

Code:
private void button1_Click(object sender, EventArgs e)
        {
            switch (p.ProcessName.ToLower())
            {
                case "firefox": {}
                case "star": {}
                    {
                        p.Kill;
                        break;
                    }
            }
        }
intellisense is telling "p" doesn't exist.
Reply With Quote