© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
❔ Execute code on WPF program close - C#
C
C#
•
3y ago
•
59 replies
Ossie
❔ Execute code on WPF program close
Hi
, is there a way I can execute some code every single time the application closes
. Either if it crashes
, is closed manually
, the computer restarts
, or closed thru task manager or whatever
?
For WPF
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
62,470
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Next page
Similar Threads
❔ Execute code when console app is closed on Windows?
C
C# / help
4y ago
❔ WPF not disposing of memory on window close
C
C# / help
4y ago
✅ Running Python Program from WPF
C
C# / help
14mo ago
✅ Why this insta close program
C
C# / help
3y ago