Click here to Skip to main content
15,885,365 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Kill a process in RDC session Pin
pranu_1325-Mar-09 12:21
pranu_1325-Mar-09 12:21 
The context in which i close the application i cannot maintain the instance. Thanks for the response.

I found a solution. Check below:

[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern IntPtr FindWindow(string sClassName, string sWindowTitle);

[DllImport("user32.dll")]
static extern uint GetWindowThreadProcessId(IntPtr hWnd, out uint lpdwProcessId);

uint processId;
IntPtr hProgram = WebApp.FindWindow(null, ".....");
GetWindowThreadProcessId(hProgram , out processId);
System.Diagnostics.Process.GetProcessById((int)processId).Kill();
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 
GeneralRe: button in textbox - sort of OT Pin
DaveyM6925-Mar-09 10:21
professionalDaveyM6925-Mar-09 10:21 

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.