H helixpoint New member Joined Mar 26, 2010 Messages 1 Programming Experience Beginner Mar 26, 2010 #1 I need to ask the user before I kill all the excel processes open. How do I check to see if there are excel open?
I need to ask the user before I kill all the excel processes open. How do I check to see if there are excel open?
jmcilhinney VB.NET Forum Moderator Staff member Joined Aug 17, 2004 Messages 15,092 Location Sydney, Australia Programming Experience 10+ Mar 28, 2010 #2 Your going to have to call Process.GetProcessesByName to terminate them anyway. You call that first and check whether the array is empty or not. Also, for apps with a UI, make sure you call CloseMainWindow to give the app a chance to close normally before you call Kill. Upvote 0 Downvote
Your going to have to call Process.GetProcessesByName to terminate them anyway. You call that first and check whether the array is empty or not. Also, for apps with a UI, make sure you call CloseMainWindow to give the app a chance to close normally before you call Kill.