Discuss Closing an External Program in the Visual Basic Programming forum on Dev Shed. Closing an External Program Visual Basic Programming forum discussing VB specific programming information. Quickly prototype and build applications with this robust and simple language.
Location: Woodland Hills, Los Angeles County, California, USA
Time spent in forums: 2 Months 3 Days 9 h 2 m 49 sec
Reputation Power: 4106
I would use TerminateProcess() only as a last ditch effort. It is probably better to use SendMessage() and send a WM_CLOSE message to the process, so that it has a chance to quit cleanly first. TerminateProcess() is akin to yanking the rug out from underneath.
__________________ Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne