943,779 Members | Top Members by Rank

Ad:
Apr 30th, 2009
0

end process

Expand Post »
i was wondering, is their any way to do something, say msgbox, when an exe is ended via the end process in the task manager? thanks in advance!
Similar Threads
Reputation Points: 8
Solved Threads: 3
Junior Poster in Training
crackerjacker is offline Offline
53 posts
since Sep 2008
May 1st, 2009
0

Re: end process

What do you mean by when an exe is ended ?
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007
May 1st, 2009
0

Re: end process

Do you mean if you have a VB application which was running, and is killed using task manager - you want that application to return an msgbox to the user saying it has ended?

I don't think that works as the "End Process" button kills the application dead, so it won't run the Form_Unload or Class_Terminate code to initialise the msgbox.
You would need to write something into the code and try it.

If you mean a separate application which monitors other executables, yes you possibly could, but you would need to look into window handles and stuff (google hWnd - I think thats the one if I remember right - you should find some stuff on that).
Reputation Points: 13
Solved Threads: 17
Junior Poster
jonifen is offline Offline
152 posts
since Nov 2007
May 2nd, 2009
0

Re: end process

all right, thanks. i think im just gona' write a different program to monitor that one like you suggested. thanks!
Reputation Points: 8
Solved Threads: 3
Junior Poster in Training
crackerjacker is offline Offline
53 posts
since Sep 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Connecting a Global Module to Forms to create and "carry through" to a final form
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: listviewissue





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC