I am new to Windows Mobile and created an app that needs to do some clean up when a Form is closed. When I click on the Close in the ControlBox it does not call the OnClosing event. This works fine in regular windows but is not working with my Windows Mobile device.
Here is my code:
protected override void OnClosing(System.ComponentModel.CancelEventArgs e) { ... }
I have also tried this with no luck:
Form.Closing += new System.ComponentModel.CancelEventHandler(WindBaseForm_Closing);
I would appreciate any help you can give.