I am not able to get this to work.
I also tried CloseHandle from kernel32.dll
and TerminateProcess.
Based my code on the following examples:
http://www.andreavb.com/tip020021.html http://www.thevbzone.com/modShellCommand.bas
No luck.
This is driving me nuts.
The reason I need this is to try to "integrate"
a C#.NET form into an Access .adp application.
So that I can click a button in my Access menu,
seamlessly open my .NET form (no problem so
far) but ensure that the .NET form closes if the
user closes their Access window.
A convoluted requirement I know.