end process

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Sep 2008
Posts: 34
Reputation: crackerjacker is an unknown quantity at this point 
Solved Threads: 2
crackerjacker crackerjacker is offline Offline
Light Poster

end process

 
0
  #1
Apr 30th, 2009
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!
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,134
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 132
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: end process

 
0
  #2
May 1st, 2009
What do you mean by when an exe is ended ?
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 141
Reputation: jonifen is an unknown quantity at this point 
Solved Threads: 15
jonifen jonifen is offline Offline
Junior Poster

Re: end process

 
0
  #3
May 1st, 2009
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).
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 34
Reputation: crackerjacker is an unknown quantity at this point 
Solved Threads: 2
crackerjacker crackerjacker is offline Offline
Light Poster

Re: end process

 
0
  #4
May 2nd, 2009
all right, thanks. i think im just gona' write a different program to monitor that one like you suggested. thanks!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC