I am trying to do some cleaning up when a form closes. I am using the following signature
private void BatchGui_Closing(object sender, FormClosingEventArgs e)
The issue is, if i put a breakpoint in there the code never executes, so how do i properly write a method for a form close event?
Thanks
In WinForms the event is called FormClosing:
Make sure you attached the event in the designer. Just adding the method is not enough!