i want to delete all items from my custom made folder, but i want to do it when the application closes as the user no longer needs a handle on these files anymore.
Where in the c# code should i write such a method? For example is there a application.shutdwon event or something :$
Thanks
Winforms has an
ApplicationExitevent.WPF has an
Exitevent.You can write your cleanup code in the event handler.