Hello, all.
My program uses another application to complete two seperate tasks. My program must open 2 instances of the application(as processes) at one time. The 1st process opens onLoad. The 2nd process can be opened with a button.
I am trying to program a close-button that closes the 2nd instance of that process only, using its windowhandle. How do I close the 2nd process only?
I am grabbing the handle of the very 1st process onLoad using this:
VB Code:
procMyProg_handle1 = procAll(0).MainWindowHandle
I have tried: - however, this does not reliably kill the 2nd process - It kills the 1st process sometimes.
Can I kill the process by its window handle?
Thanks.
-kaanuki-
vb2005 express edition