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

C#

 
QuestionC# and Data Acquisition Application Pin
stancrm25-Mar-09 10:06
stancrm25-Mar-09 10:06 
JokeRe: C# and Data Acquisition Application Pin
Eddy Vluggen25-Mar-09 10:31
professionalEddy Vluggen25-Mar-09 10:31 
AnswerRe: C# and Data Acquisition Application Pin
DaveyM6925-Mar-09 11:26
professionalDaveyM6925-Mar-09 11:26 
GeneralRe: C# and Data Acquisition Application Pin
Eddy Vluggen25-Mar-09 12:07
professionalEddy Vluggen25-Mar-09 12:07 
GeneralRe: C# and Data Acquisition Application Pin
DaveyM6925-Mar-09 12:17
professionalDaveyM6925-Mar-09 12:17 
AnswerRe: C# and Data Acquisition Application Pin
Luc Pattyn25-Mar-09 13:47
sitebuilderLuc Pattyn25-Mar-09 13:47 
QuestionKill a process in RDC session Pin
pranu_1325-Mar-09 9:48
pranu_1325-Mar-09 9:48 
AnswerRe: Kill a process in RDC session Pin
Ian Shlasko25-Mar-09 10:43
Ian Shlasko25-Mar-09 10:43 
Well, there are quite a few ways to launch a process... In this case, why not start it using the System.Diagnostics.Process class, and just keep a reference to that object?

private Process appB;
public void LaunchAppB()
{ 
  appB = new Process();
  appB.StartInfo.FileName = "...";
  appB.Start();
}


public void KillAppB()
{
  if (!appB.CloseMainWindow()) appB.Kill();
}


(Note: You generally want to try CloseMainWindow first, which will try to close the app in the usual manner, like clicking the X. If that doesn't work, you kill the process. Depending on exactly what you're doing here, you might need to make it more sophisticated, perhaps giving it a few seconds to close properly and killing after that, or something of the sort)
GeneralRe: Kill a process in RDC session Pin
pranu_1325-Mar-09 12:21
pranu_1325-Mar-09 12:21 
GeneralRe: Kill a process in RDC session Pin
dano2k325-Mar-09 22:44
dano2k325-Mar-09 22:44 
QuestionAnalyzing the Traffic of network Pin
spiritboy25-Mar-09 9:41
spiritboy25-Mar-09 9:41 
AnswerRe: Analyzing the Traffic of network Pin
harold aptroot25-Mar-09 10:08
harold aptroot25-Mar-09 10:08 
QuestionHow long the database connection stays open Pin
netJP12L25-Mar-09 9:32
netJP12L25-Mar-09 9:32 
AnswerRe: How long the database connection stays open Pin
spiritboy25-Mar-09 9:43
spiritboy25-Mar-09 9:43 
GeneralRe: How long the database connection stays open Pin
netJP12L25-Mar-09 10:30
netJP12L25-Mar-09 10:30 
GeneralRe: How long the database connection stays open Pin
dano2k325-Mar-09 22:49
dano2k325-Mar-09 22:49 
QuestionTrouble with arrays and nested classes [modified] Pin
robertkjr3d25-Mar-09 9:06
robertkjr3d25-Mar-09 9:06 
AnswerRe: Trouble with arrays and nested classes Pin
dan!sh 25-Mar-09 9:24
professional dan!sh 25-Mar-09 9:24 
GeneralRe: Trouble with arrays and nested classes Pin
Xmen Real 25-Mar-09 19:38
professional Xmen Real 25-Mar-09 19:38 
AnswerRe: Trouble with arrays and nested classes Pin
DaveyM6925-Mar-09 9:32
professionalDaveyM6925-Mar-09 9:32 
QuestionCOM interface inheritance Pin
Ravadre25-Mar-09 8:48
Ravadre25-Mar-09 8:48 
Questionbutton in textbox Pin
behzadcp25-Mar-09 8:31
professionalbehzadcp25-Mar-09 8:31 
AnswerRe: button in textbox Pin
dan!sh 25-Mar-09 9:21
professional dan!sh 25-Mar-09 9:21 
GeneralRe: button in textbox Pin
behzadcp25-Mar-09 9:46
professionalbehzadcp25-Mar-09 9:46 
GeneralRe: button in textbox Pin
dan!sh 25-Mar-09 9:53
professional dan!sh 25-Mar-09 9:53 

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.