Click here to Skip to main content
15,891,607 members
Home / Discussions / C#
   

C#

 
GeneralRe: Display problem/bug Pin
Skynyrd17-Feb-05 6:52
Skynyrd17-Feb-05 6:52 
GeneralRe: Display problem/bug Pin
eynkram17-Feb-05 11:03
eynkram17-Feb-05 11:03 
GeneralRe: Display problem/bug Pin
ACorbs17-Feb-05 17:24
ACorbs17-Feb-05 17:24 
GeneralRe: Display problem/bug Pin
eynkram18-Feb-05 3:16
eynkram18-Feb-05 3:16 
QuestionWeb Farm Working? Pin
Vishwanathkk17-Feb-05 3:26
Vishwanathkk17-Feb-05 3:26 
AnswerRe: Web Farm Working? Pin
Dave Kreskowiak17-Feb-05 7:51
mveDave Kreskowiak17-Feb-05 7:51 
GeneralSystem.IO.IOException Pin
exhaulted17-Feb-05 3:09
exhaulted17-Feb-05 3:09 
GeneralRe: System.IO.IOException Pin
Esmo200017-Feb-05 5:29
Esmo200017-Feb-05 5:29 
Kev:

If the .exe is running then you are definetly not going to be able to copy it.

One thing you might do is use some code like this:


System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcesses();

foreach(Process p in processes)
{
if(p.ProcessName == "ProcessName")
{
p.Kill();
}
}
That would kill the process (you should also consider p.close(); and then killing if that fails).

I hope this helps,
Jim
GeneralAccess parent form objects Pin
Seraphin17-Feb-05 2:59
Seraphin17-Feb-05 2:59 
GeneralRe: Access parent form objects Pin
Stefan Troschuetz17-Feb-05 3:13
Stefan Troschuetz17-Feb-05 3:13 
Questiondllimport: how to? Pin
bouli17-Feb-05 2:47
bouli17-Feb-05 2:47 
QuestionVoice communication over a network? Pin
wakkerjack17-Feb-05 1:53
wakkerjack17-Feb-05 1:53 
AnswerRe: Voice communication over a network? Pin
Radgar17-Feb-05 6:56
Radgar17-Feb-05 6:56 
GeneralRe: Voice communication over a network? Pin
Anonymous17-Feb-05 10:11
Anonymous17-Feb-05 10:11 
GeneralRe: Voice communication over a network? Pin
Radgar17-Feb-05 11:15
Radgar17-Feb-05 11:15 
GeneralRe: Voice communication over a network? Pin
Anonymous19-Feb-05 22:09
Anonymous19-Feb-05 22:09 
GeneralXP Look of Application Pin
A Khan17-Feb-05 1:23
sussA Khan17-Feb-05 1:23 
GeneralRe: XP Look of Application Pin
Mr.Cooper17-Feb-05 1:40
Mr.Cooper17-Feb-05 1:40 
GeneralRe: XP Look of Application Pin
Radgar17-Feb-05 7:10
Radgar17-Feb-05 7:10 
GeneralHelp to Drag a picturebox Pin
Anonymous17-Feb-05 1:19
Anonymous17-Feb-05 1:19 
Questionhow to add a new option to Windows textbox context menu Pin
Anonymous17-Feb-05 1:16
Anonymous17-Feb-05 1:16 
AnswerRe: how to add a new option to Windows textbox context menu Pin
Radgar18-Feb-05 0:54
Radgar18-Feb-05 0:54 
GeneralCreate .txt file Pin
BH Serpa16-Feb-05 23:43
BH Serpa16-Feb-05 23:43 
GeneralRe: Create .txt file Pin
Stefan Troschuetz17-Feb-05 0:01
Stefan Troschuetz17-Feb-05 0:01 
GeneralRe: Create .txt file Pin
BH Serpa17-Feb-05 0:42
BH Serpa17-Feb-05 0:42 

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.