Click here to Skip to main content
15,915,509 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to publish an assembly Pin
Shuaib wasif khan21-Apr-07 0:26
Shuaib wasif khan21-Apr-07 0:26 
AnswerRe: how to publish an assembly Pin
sthotakura21-Apr-07 7:54
sthotakura21-Apr-07 7:54 
QuestionDataGridView databounding Pin
Yoyosch20-Apr-07 21:07
Yoyosch20-Apr-07 21:07 
AnswerRe: DataGridView databounding Pin
phantanagu20-Apr-07 22:57
phantanagu20-Apr-07 22:57 
GeneralRe: DataGridView databounding Pin
Yoyosch20-Apr-07 23:01
Yoyosch20-Apr-07 23:01 
GeneralRe: DataGridView databounding Pin
phantanagu20-Apr-07 23:15
phantanagu20-Apr-07 23:15 
AnswerRe: DataGridView databounding Pin
Keshav V. Kamat22-Apr-07 22:55
Keshav V. Kamat22-Apr-07 22:55 
QuestionProcess Exit event Pin
ParimalaRadjaram20-Apr-07 20:54
ParimalaRadjaram20-Apr-07 20:54 
Hi All,

I'm trying to get the exit time of a process which has been initiated using the process class. An event has been written which will be triggered when the process is being closed. But the problem here is, the event is not getting triggered. Here is the code:

ProcessStartInfo startInfo = new ProcessStartInfo();

startInfo.FileName = "notepad.exe";
startInfo.Arguments = @"E:\shared\perdata.txt";
startInfo.WorkingDirectory = @"C:\Temp";
startInfo.WindowStyle = ProcessWindowStyle.Maximized;

oProcess.EnableRaisingEvents = true;
oProcess.Exited += new EventHandler(ProcessExited);
oProcess = Process.Start(startInfo);

Event to be called:
public void ProcessExited(object sender,System.EventArgs e)
{
MessageBox.Show(oProcess.ExitTime.ToString());
}


Any help would do. Thanks in advance

Parimala

AnswerRe: Process Exit event Pin
sthotakura20-Apr-07 22:39
sthotakura20-Apr-07 22:39 
GeneralRe: Process Exit event Pin
ParimalaRadjaram20-Apr-07 23:10
ParimalaRadjaram20-Apr-07 23:10 
JokeRe: Process Exit event Pin
sthotakura20-Apr-07 23:28
sthotakura20-Apr-07 23:28 
QuestionMicrosoft.Office.Interop.Access object library Pin
AsankaSL20-Apr-07 19:20
AsankaSL20-Apr-07 19:20 
QuestionCreate a user on the aspnet_users tables on a web service Pin
Cheng Dehua20-Apr-07 18:32
Cheng Dehua20-Apr-07 18:32 
AnswerRe: Create a user on the aspnet_users tables on a web service Pin
coolestCoder20-Apr-07 18:37
coolestCoder20-Apr-07 18:37 
GeneralRe: Create a user on the aspnet_users tables on a web service Pin
Cheng Dehua20-Apr-07 20:00
Cheng Dehua20-Apr-07 20:00 
GeneralRe: Create a user on the aspnet_users tables on a web service Pin
coolestCoder22-Apr-07 19:04
coolestCoder22-Apr-07 19:04 
GeneralRe: Create a user on the aspnet_users tables on a web service Pin
Cheng Dehua1-May-07 15:20
Cheng Dehua1-May-07 15:20 
Question[Message Deleted] Pin
Nadia Monalisa20-Apr-07 16:43
Nadia Monalisa20-Apr-07 16:43 
AnswerRe: Logging Keyboard activities Pin
coolestCoder20-Apr-07 18:39
coolestCoder20-Apr-07 18:39 
AnswerRe: Logging Keyboard activities Pin
Arun.Immanuel20-Apr-07 18:51
Arun.Immanuel20-Apr-07 18:51 
GeneralRe: Logging Keyboard activities [modified] Pin
Nadia Monalisa21-Apr-07 2:52
Nadia Monalisa21-Apr-07 2:52 
Questioncopying row in datagridview Pin
phantanagu20-Apr-07 15:53
phantanagu20-Apr-07 15:53 
AnswerRe: copying row in datagridview Pin
Anil Ch23-Apr-07 11:07
Anil Ch23-Apr-07 11:07 
Questionget / set methods Pin
cbin20-Apr-07 14:23
cbin20-Apr-07 14:23 
AnswerRe: get / set methods Pin
Colin Angus Mackay20-Apr-07 14:40
Colin Angus Mackay20-Apr-07 14:40 

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.