Click here to Skip to main content
15,909,324 members
Home / Discussions / C#
   

C#

 
GeneralChange the color of Listview Cell Pin
vjay_rk25-Aug-04 19:57
sussvjay_rk25-Aug-04 19:57 
GeneralRe: Change the color of Listview Cell Pin
David Salter25-Aug-04 22:30
David Salter25-Aug-04 22:30 
GeneralProbelm with crystal reports Pin
Miroblue0525-Aug-04 16:20
Miroblue0525-Aug-04 16:20 
GeneralRe: Probelm with crystal reports Pin
Michael P Butler26-Aug-04 1:16
Michael P Butler26-Aug-04 1:16 
GeneralVisual studio.net Vs C#.Net Pin
ppp00125-Aug-04 16:16
ppp00125-Aug-04 16:16 
GeneralRe: Visual studio.net Vs C#.Net Pin
S Sansanwal25-Aug-04 16:20
S Sansanwal25-Aug-04 16:20 
GeneralKilling an existing process Pin
Peter Vertes25-Aug-04 12:16
Peter Vertes25-Aug-04 12:16 
GeneralRe: Killing an existing process Pin
Heath Stewart25-Aug-04 12:23
protectorHeath Stewart25-Aug-04 12:23 
If you look at the member documentation in the .NET Framework SDK, several methods should be obvious, like GetProcessByName:
Process[] procs = Process.GetProcessesByName("notepad");
if (procs != null)
  foreach (Process proc in procs)
    proc.Kill();
Please note it's not always such a good idea to kill processes, though. First try to close them gracefully using Process.CloseMainWindow followed by Process.Close. If that doesn't work or if you really mean to kill processes, then use Process.Kill.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
GeneralRe: Killing an existing process Pin
S Sansanwal25-Aug-04 13:26
S Sansanwal25-Aug-04 13:26 
GeneralRe: Killing an existing process [clickety] Pin
Colin Angus Mackay25-Aug-04 22:37
Colin Angus Mackay25-Aug-04 22:37 
GeneralRe: Killing an existing process [clickety] Pin
Dave Kreskowiak26-Aug-04 3:11
mveDave Kreskowiak26-Aug-04 3:11 
GeneralMulti Threaded WS calls hang Pin
Stephan Meyn25-Aug-04 11:42
Stephan Meyn25-Aug-04 11:42 
GeneralRe: Multi Threaded WS calls hang Pin
Anonymous25-Aug-04 12:00
Anonymous25-Aug-04 12:00 
GeneralRe: Multi Threaded WS calls hang Pin
Heath Stewart25-Aug-04 13:05
protectorHeath Stewart25-Aug-04 13:05 
GeneralRe: Multi Threaded WS calls hang Pin
Stephan Meyn25-Aug-04 23:42
Stephan Meyn25-Aug-04 23:42 
GeneralRe: Multi Threaded WS calls hang Pin
Dave Kreskowiak26-Aug-04 3:09
mveDave Kreskowiak26-Aug-04 3:09 
GeneralRe: Multi Threaded WS calls hang Pin
Heath Stewart26-Aug-04 7:10
protectorHeath Stewart26-Aug-04 7:10 
GeneralRe: Multi Threaded WS calls hang Pin
Heath Stewart26-Aug-04 7:07
protectorHeath Stewart26-Aug-04 7:07 
GeneralRe: Multi Threaded WS calls hang Pin
Stephan Meyn26-Aug-04 12:26
Stephan Meyn26-Aug-04 12:26 
GeneralRe: Multi Threaded WS calls hang Pin
Stephan Meyn27-Aug-04 2:08
Stephan Meyn27-Aug-04 2:08 
GeneralRe: Multi Threaded WS calls hang Pin
Heath Stewart27-Aug-04 9:08
protectorHeath Stewart27-Aug-04 9:08 
GeneralRe: Multi Threaded WS calls hang Pin
Stephan Meyn28-Aug-04 13:30
Stephan Meyn28-Aug-04 13:30 
Generaltrouble with data connections Pin
Miles Roberts25-Aug-04 11:05
Miles Roberts25-Aug-04 11:05 
GeneralRe: trouble with data connections Pin
Nick Parker25-Aug-04 11:17
protectorNick Parker25-Aug-04 11:17 
GeneralRe: trouble with data connections Pin
Miles Roberts25-Aug-04 11:26
Miles Roberts25-Aug-04 11:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.