C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




how to kill other running processes in system


Posted Date: 05 Sep 2008      Total Responses: 1

Posted By: ashok       Member Level: Bronze     Points: 1


Hi all,

i have developed an windows application and in a list box am able to get the currently running processes in my PC.

Now i want to kill the process selected from the list box.

Please give any clues to do so.

Thanks,
Ashok




Responses

Author: avtar    05 Sep 2008Member Level: GoldRating:     Points: 3
try this


private void KillmyProcess()
{
Process[] myProcesses = Process.GetProcessesByName("myProcess");
if (myProcesses.Length == 1)
myProcesses[0].Kill();
}



Post Reply
You must Sign In to post a response.
Next : Job in Sqlserver
Previous : confusion..whats the default value of char in c#?
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

it support

Contact Us    Privacy Policy    Terms Of Use