White_raven
New member
- Joined
- Jan 11, 2005
- Messages
- 1
- Programming Experience
- Beginner
hi friends
can some one please help me understand how to get the process exit time
i used the Exit time property of the process, but i dont exactly get where to place the call for ExitTime
i got the start time using StartTime property but i'm unable to get the Exit Time
1 more thing
i have to intergate Flash MX in the software
i have started the flash process in the parent form
but ending the process using CloseMainWindow property is not possible
so i have to use kill process
but is there some other way to do it
and is Kill process the reason i'm not able to use the ExitTime property
here is the code i used
Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem2.Click
Dim myProcesses(), proc() As Process
Dim myProcess, myproc As Process
Dim strdte, exitdte As Date
' Returns array containing all instances of "iexplore".
'= myProcesses = Process.GetProcessesByName("flash")
If MessageBox.Show("Do you want to save work before Quitting", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification) = DialogResult.No Then
myProcesses = Process.GetProcessesByName("flash")
' proc = Process.GetProcessesByName("windowsapplication10")
' Process.GetProcessesByName("iexplore")
'= For Each myProcess In myProcesses
For Each myProcess In myProcesses
' For Each myproc In myProcesses
' SetParent(myProcess.MainWindowHandle, Me.Handle)
' SetParent(myproc.MainWindowHandle, Me.Handle)
myProcess.CloseMainWindow()
strdte = myProcess.StartTime
MsgBox(strdte)
myProcess.Kill()
MsgBox("Hi Everything is fine!!!")
Next
' myProcesses = Process.GetProcessesByName("flash")
exitdte = myProcess.ExitTime
MsgBox(exitdte)
myProcess.Close()
Else
'''''''''''''''''''''''''''''''''''''
End If
can some one please help me understand how to get the process exit time
i used the Exit time property of the process, but i dont exactly get where to place the call for ExitTime
i got the start time using StartTime property but i'm unable to get the Exit Time
1 more thing
i have to intergate Flash MX in the software
i have started the flash process in the parent form
but ending the process using CloseMainWindow property is not possible
so i have to use kill process
but is there some other way to do it
and is Kill process the reason i'm not able to use the ExitTime property
here is the code i used
Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem2.Click
Dim myProcesses(), proc() As Process
Dim myProcess, myproc As Process
Dim strdte, exitdte As Date
' Returns array containing all instances of "iexplore".
'= myProcesses = Process.GetProcessesByName("flash")
If MessageBox.Show("Do you want to save work before Quitting", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification) = DialogResult.No Then
myProcesses = Process.GetProcessesByName("flash")
' proc = Process.GetProcessesByName("windowsapplication10")
' Process.GetProcessesByName("iexplore")
'= For Each myProcess In myProcesses
For Each myProcess In myProcesses
' For Each myproc In myProcesses
' SetParent(myProcess.MainWindowHandle, Me.Handle)
' SetParent(myproc.MainWindowHandle, Me.Handle)
myProcess.CloseMainWindow()
strdte = myProcess.StartTime
MsgBox(strdte)
myProcess.Kill()
MsgBox("Hi Everything is fine!!!")
Next
' myProcesses = Process.GetProcessesByName("flash")
exitdte = myProcess.ExitTime
MsgBox(exitdte)
myProcess.Close()
Else
'''''''''''''''''''''''''''''''''''''
End If
Last edited: