how to terminate an application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tal170
    New Member
    • Jun 2007
    • 7

    how to terminate an application

    hey

    I am writing a program and I need to know how to terminate an application in C#. For example lets say Internet Explorer is open, how can I end the process(just like the task manager)?

    thank you very much for your help
  • camel
    New Member
    • Jan 2008
    • 55

    #2
    If you spin up the application using the Process class (System.Diagono stics ns) you can get a handle to the process and terminate it whenever appropriate.

    Comment

    Working...