In 2025, the WinForm event you are looking for is in the window 'Properties' -> Events -> Misc -> Closing Closing event in VS
Double click on the cell next to the name of the event to generate a Form_Closing method. The method will be called when the form is closing.