Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

Ending the process

I need a certain action to be taken when user exits my .NET windows application. For that purpose I worte code for the Exit button and also for Form_Closing event.
But none of that code gets executed if the user goes to Task List, selects the process that corresponds to my application, right-clicks on it and selects "end process". Where should I put the code for that in Dispose or Finalize? Or is there anything else?
0
YZlat
Asked:
YZlat
1 Solution
 
AlexFMCommented:
This is impossible - process is killed by Windows without any chance to execute finalizing code.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now