By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,290 Members | 1,384 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,290 IT Pros & Developers. It's quick & easy.

Process.Exited Event Not Getting Trapped

P: n/a
Is this a known bug?

Sub RunCalc()
dim P as new Process
P = Process.Start("calc.exe")
addhandler P.Exited, Addressof DoneCalculating
End Sub

Sub DoneCalculating(sender as object, e as eventargs)
msgbox "Done"
end Sub

Closing Calc.exe does not fire the DoneCalculating event...?

--
--Zorpie
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Zorpiedoman" <no*********@beatles.com> schrieb:
Sub RunCalc()
dim P as new Process
P = Process.Start("calc.exe")
\\\
p.EnableRaisingEvents = True
///
addhandler P.Exited, Addressof DoneCalculating
End Sub


--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2

P: n/a
Waaay too easy! Thanks! :-)
--
--Zorpie
"Herfried K. Wagner [MVP]" wrote:
"Zorpiedoman" <no*********@beatles.com> schrieb:
Sub RunCalc()
dim P as new Process
P = Process.Start("calc.exe")


\\\
p.EnableRaisingEvents = True
///
addhandler P.Exited, Addressof DoneCalculating
End Sub


--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.